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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
je 0x492b1c
cmp byte [esi + 0x25], 0
je 0x492b1c
cmp byte [esi + 0x26], 0
je 0x492b1c
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
mov dword [esp + 0x18], eax
je 0x492b1c
mov edi, dword [esi + 4]
lea ecx, [edi + 0xb0]
lea ebx, [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0
call fcn.00492bb0
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0xb4]
je 0x492b1c
mov ebx, dword [eax + 0x10]
xor edi, edi
cmp ebx, edi
je 0x492b1c
mov eax, dword [esi + 4]
cmp byte [eax + 0xf4], 0
mov cl, byte [eax + 0xa9]
mov byte [esp + 0x14], cl
je 0x492947
lea esi, [esp + 0x74]
mov edi, ebx
call fcn.004a9900
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x20]
sub eax, edi
imul eax, dword [esi + 0x74]
cdq
idiv dword [esp + 0x18]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x38]
sub ecx, edi
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x74]
add eax, edi
add ecx, eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x6c]
push ecx
push edx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.00492770
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x30]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x30], edx
cdq
idiv ecx
mov dword [esp + 0x2c], edi
test eax, eax
js 0x492a11
mov edi, edi
mov eax, ecx
imul eax, edi
add eax, dword [esi + 0x30]
add ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esi + 0x38]
jle 0x4929de
mov eax, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
cdq
idiv ecx
inc edi
cmp edi, eax
jle 0x4929c0
mov edx, dword [esi + 0x74]
test edx, edx
je 0x492b1c
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x38]
sub eax, ecx
imul eax, edx
cdq
idiv dword [esp + 0x18]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jle 0x492a5e
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
lea eax, [esp + 0x34]
add ecx, edi
mov edi, dword [esp + 0x14]
push edi
mov dword [esp + 0x34], ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
add eax, ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jle 0x492aaa
mov dword [esp + 0x2c], ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push edi
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebx
call edx
mov eax, dword [esi + 0x74]
cmp eax, dword [esi + 0x7c]
jl 0x492b1c
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x38]
add edx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
add ecx, eax
push edi
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 0xc