Function at 0x493fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xbfc
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0xbf8], eax
mov edx, dword [esp + 0xc0c]
push ebx
mov ecx, dword [esp + 0xc0c]
mov eax, dword [esp + 0xc08]
push ebp
push esi
push edi
mov esi, dword [esp + 0xc10]
lea edi, [esp + 0x4c]
push edi
lea edi, [esp + 0x30]
push edi
lea edi, [esp + 0x44]
push edi
lea edi, [esp + 0x68]
push edi
lea edi, [esp + 0xa8]
push edi
push edx
push ecx
push eax
mov eax, esi
call fcn.00493940
add esp, 0x20
mov dword [esp + 0x28], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
cmp dword [esi + 0x50], eax
jle 0x494112
lea ecx, [esp + 0x98]
mov dword [esp + 0x20], ecx
lea ecx, [esi + 0x134]
mov dword [esp + 0x14], ecx
jmp 0x494040
xor ebp, ebp
cmp dword [esi + 0x4c], ebp
jle 0x4940ee
mov edx, dword [esp + 0x20]
mov edi, ecx
mov dword [esp + 0x18], edx
lea ebx, [eax*8]
lea esp, [esp]
lea eax, [esp + 0x308]
push eax
push esi
mov eax, edi
call fcn.00491470
add esp, 8
test eax, eax
je 0x4940cb
mov eax, dword [esp + ebx + 0x2c]
test eax, eax
je 0x4940cb
mov ecx, dword [esp + ebx + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ebp
lea edx, [esp + 0x314]
push edx
push eax
push edi
push esi
call fcn.00493760
add esp, 0x1c
test byte [esi + 0x14c68], 1
je 0x4940bb
mov ecx, dword [esp + 0x18]
push edi
push esi
lea edx, [esp + 0x310]
call fcn.00491d30
add esp, 8
mov ecx, dword [edi + 0x12ec]
add ecx, dword [edi + 0x12a0]
add dword [esp + 0x1c], ecx
add dword [esp + 0x18], 0x9c
inc ebp
add ebx, 4
add edi, 0x1484
cmp ebp, dword [esi + 0x4c]
jl 0x494060
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x20], 0x138
inc eax
add ecx, 0x2908
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esi + 0x50]
jl 0x494040
cmp dword [esp + 0x28], 0
je 0x49412e
cmp dword [esi + 0x80], 0
jne 0x49412e
mov dword [esi + 0x14b08], 1
jmp 0x494137
mov edx, dword [esi + 0x74]
mov dword [esi + 0x14b08], edx
mov eax, dword [esi + 0x14b08]
cmp eax, dword [esi + 0x78]
jge 0x49415a
mov eax, dword [esi + 0x14b08]
cmp edi, dword [esp + eax*4 + 0x5c]
jle 0x49415a
inc eax
mov dword [esi + 0x14b08], eax
cmp eax, dword [esi + 0x78]
jl 0x494142
lea edx, [esp + 0x24]
push edx
push esi
call fcn.004979d0
add esp, 8
cmp edi, eax
jle 0x49418c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xa0]
push edx
push esi
call fcn.00493c20
add esp, 0x10
jmp 0x494011
cmp dword [esi + 0x50], 0
mov dword [esp + 0x10], 0
jle 0x49420b
xor ebp, ebp
mov dword [esp + 0x14], ebp
xor edi, edi
cmp dword [esi + 0x4c], edi
jle 0x4941ef
jmp 0x4941b0
lea eax, [esi + 0x134]
push eax
lea ebx, [eax + ebp]
mov eax, dword [esp + 0x14]
push edi
push eax
push esi
call fcn.00496960
add esp, 0x10
cmp dword [esi + 0x28], 1
jne 0x4941d9
push ebx
push esi
call fcn.004959c0
add esp, 8
push ebx
push esi
call fcn.00497b80
inc edi
add esp, 8
add ebp, 0x1484
cmp edi, dword [esi + 0x4c]
jl 0x4941b0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
inc eax
add ebp, 0x2908
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
cmp eax, dword [esi + 0x50]
jl 0x4941a0
mov ecx, dword [esp + 0x24]
push ecx
push esi
call fcn.00497ba0
mov ecx, dword [esp + 0xc10]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a7314
add esp, 0xbfc
ret