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

Disassembly:
neg edx
push edx
neg eax
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x645704]
mov eax, dword [esi + 0x20]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [0x6457ec]
push 0
lea ecx, [esi + 0x7c]
push ecx
call fcn.004953ee
mov edi, dword [eax + 4]
mov ecx, dword [esi + 0x16c]
mov eax, dword [esp + 0x20]
cdq
idiv ecx
add edi, 3
mov dword [esp + 0x80], edi
mov dword [esp + 0x28], edi
mov ebx, eax
imul ebx, ecx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ebx - 8]
lea eax, [edi + 0x10]
mov ecx, ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
neg eax
neg ecx
push eax
push ecx
lea edx, [esp + 0x30]
add ebx, 0x10
push edx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
call dword [0x645704]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], ecx
movzx ecx, bx
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x19c]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x198]
push edx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x88]
push ecx
shr ebx, 0x10
call dword [0x6457e8]
mov edx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x88]
push eax
call dword [0x6457e8]
cmp eax, dword [esp + 0x24]
je 0x4930be
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x84]
push ecx
push edx
call dword [0x6457ec]
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x19c]
add eax, dword [esp + 0x14]
cdq
idiv ecx
imul eax, ecx
mov dword [esp + 0x24], eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx - 8]
lea edx, [eax + 0x10]
mov ecx, edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
push edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x30]
add edi, 0x10
push ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x3c], edi
call dword [0x645704]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x84], edx
call dword [0x645800]
test eax, eax
jne 0x4931ac
mov edx, dword [esi + 0x19c]
mov eax, dword [esi + 0x198]
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call dword [0x6457e8]
mov edx, dword [esp + 0x18]
push ebx
mov edi, eax
push edx
lea eax, [esp + 0x78]
push eax
call dword [0x6457e8]
cmp eax, edi
je 0x4931ac
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [0x6457ec]
cmp dword [esi + 0x194], 0
jne 0x4931e9
mov eax, dword [esi + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x4c], 2
mov dword [esp + 0x54], 0
call dword [0x6457c0]
mov dword [esi + 0x194], 1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x198], ecx
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x19c], ebx
test ecx, ecx
je 0x493214
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor edi, edi
mov eax, dword [esp + 0x40]
cmp eax, edi
jne 0x493235
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push edi
mov ecx, esi
call 0x5608d0
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10