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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x521390]
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 0x495e68
cmp byte [esi + 0x25], 0
je 0x495e68
cmp byte [esi + 0x26], 0
je 0x495e68
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
mov dword [esp + 0x18], eax
je 0x495e68
mov edi, dword [esi + 4]
lea ecx, [edi + 0xb0]
lea ebx, [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0
call fcn.00495e80
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0xb4]
je 0x495e68
mov ebx, dword [eax + 0x10]
xor edi, edi
cmp ebx, edi
je 0x495e68
mov eax, dword [esi + 4]
cmp byte [eax + 0xf4], 0
mov cl, byte [eax + 0xa9]
mov byte [esp + 0x14], cl
je 0x495c97
lea esi, [esp + 0x74]
mov edi, ebx
call fcn.004ab1c0
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.004cbf11
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.00495ac0
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 0x495d5d
mov edi, edi
mov eax, ecx
imul eax, edi
add ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jle 0x495d2a
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebx
call eax
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 0x495d10
mov edx, dword [esi + 0x74]
test edx, edx
je 0x495e68
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 0x495daa
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 0x495df6
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 0x495e68
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.004cbf11
mov esp, ebp
pop ebp
ret 0xc