Function at 0x500e30
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0xec
push esi
push edi
mov edi, ecx
push 0x1f3
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x500e79
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x14], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [esp + 0x1c], eax
push 0x54c
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x500eb8
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x24], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor ecx, ecx
mov dword [esp + 0x28], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [esp + 0x2c], ecx
push 0x539
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x500f0b
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x34], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.0045f570
test eax, eax
je 0x500f04
xor edx, edx
cmp dword [esi + 0x10], edx
setne dl
mov dword [esp + 0x3c], edx
jmp 0x500f0b
mov eax, dword [edi + 0x20]
mov dword [esp + 0x3c], eax
push ebx
push ebp
push 0x1eb
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
mov edi, 8
lea ebp, [edi + 8]
lea ebx, [edi - 7]
test esi, esi
je 0x500f80
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x4c], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor ecx, ecx
mov dword [esp + 0x50], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [esp + 0x54], ecx
movzx eax, word [esi + 0x2b8]
cmp ax, bx
jne 0x500f6a
or dword [esp + 0x54], 4
jmp 0x500f80
cmp ax, 2
jne 0x500f76
or dword [esp + 0x54], edi
jmp 0x500f80
cmp ax, 3
jne 0x500f80
or dword [esp + 0x54], ebp
push 0xfd
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x500fcd
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x5c], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor edx, edx
mov dword [esp + 0x60], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [esp + 0x64], edx
cmp dword [esi + 0x344], 0
je 0x500fcd
or dword [esp + 0x64], 2
push 0x13d
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x50103f
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x6c], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0x70], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0xb46c]
cmp eax, ebx
jne 0x50101d
or dword [esp + 0x74], 4
jmp 0x501031
cmp eax, 2
jne 0x501028
or dword [esp + 0x74], edi
jmp 0x501031
cmp eax, 4
jne 0x501031
or dword [esp + 0x74], ebp
mov ecx, esi
call fcn.004d5d80
movzx ecx, al
mov dword [esp + 0x78], ecx
push 0x68c
mov ecx, 0x6830f8
call fcn.004412c0
test eax, eax
je 0x501071
cmp dword [eax + 0x10], 0
je 0x501062
or dword [esp + 0x74], 0x100
jmp 0x501071
mov eax, 0x100
test dword [esp + 0x74], eax
je 0x501071
xor dword [esp + 0x74], eax
push 0x103
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x5010e2
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x7c], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor edx, edx
mov dword [esp + 0x80], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [esp + 0x84], edx
mov al, byte [esi + 0x29f]
cmp al, bl
jne 0x5010ca
or dword [esp + 0x84], 4
jmp 0x5010e2
cmp al, 2
jne 0x5010d7
or dword [esp + 0x84], edi
jmp 0x5010e2
cmp al, 3
jne 0x5010e2
or dword [esp + 0x84], ebp
push 0x6b
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x501127
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x8c], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0x90], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [esp + 0x94], eax
push 0xd7
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x5011cd
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0x9c], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor ecx, ecx
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [esp + 0xa4], ecx
cmp byte [esi + 0x29f], bl
jne 0x5011ba
or dword [esp + 0xa4], 4
mov edx, dword [0x69386c]
mov al, byte [edx + 0x29f]
cmp al, bl
jne 0x50119d
or dword [esp + 0xa4], 0x20
jmp 0x5011ba
cmp al, 2
jne 0x5011ab
or dword [esp + 0xa4], 0x40
jmp 0x5011ba
cmp al, 3
jne 0x5011ba
or dword [esp + 0xa4], 0x80
mov eax, dword [esi + 0x2a8]
mov ecx, dword [eax + 0x32c]
mov dword [esp + 0xa8], ecx
push 0x359
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x501245
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0xac], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor edx, edx
mov dword [esp + 0xb0], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [esp + 0xb4], edx
cmp byte [esi + 0x29f], bl
jne 0x501225
or dword [esp + 0xb4], 4
cmp byte [esi + 0x29f], 2
jne 0x501235
or dword [esp + 0xb4], edi
cmp byte [esi + 0x29f], 3
jne 0x501245
or dword [esp + 0xb4], ebp
push 0x5ca
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x50128d
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0xbc], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0xc0], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [esp + 0xc4], eax
push 0x564
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
test esi, esi
je 0x5012e6
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0xcc], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0xd0], eax
cmp dword [esi + 0x10], 0
je 0x5012db
mov dword [esp + 0xd4], ebx
mov dword [0x6a3b48], ebx
jmp 0x5012e6
mov dword [esp + 0xd4], 0
push 0x220
mov ecx, 0x6830f8
call fcn.004412c0
mov esi, eax
pop ebp
pop ebx
test esi, esi
je 0x501345
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0xd4], eax
fld dword [esi + 0x24c]
call fcn.00599920
xor ecx, ecx
cmp dword [0x693934], ecx
mov dword [esp + 0xd8], eax
setne cl
xor edx, edx
cmp dword [0x693930], edx
setne dl
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov esi, dword [0x6a40c4]
test esi, esi
je 0x50137f
fld dword [esi + 0x248]
call fcn.00599920
mov dword [esp + 0xe4], eax
fld dword [esi + 0x24c]
call fcn.00599920
mov dword [esp + 0xe8], eax
mov eax, dword [0x6a40c0]
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0xf8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5013fb
mov edx, dword [0x6cac40]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0x6111101
mov dword [esp + 0x24], edx
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe0
lea edx, [esp + 0x20]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0xec
ret 4