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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xb4], ecx
jne 0x481789
cmp dword [esp + 0x4c], ecx
je 0x481789
mov eax, dword [esi + 0x10c]
mov dword [esp + 0x10], eax
jmp 0x481793
mov edx, dword [esi + 0x110]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x78], ecx
je 0x4817a2
mov eax, dword [esi + 0x184]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x100], 1
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov ebp, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], edi
jne 0x4817e6
mov ebx, dword [esi + 0x334]
lea eax, [edx + edx*8]
mov eax, dword [ebx + eax*4]
dec eax
cmp eax, dword [esp + 0x38]
jne 0x4817d9
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [esp + 0x40], ecx
jne 0x4817e6
lea eax, [edi - 1]
mov dword [esp + 0x4c], eax
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x18], ebp
jg 0x48193f
lea ecx, [ebp + ebp*8]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x334]
add ecx, eax
mov eax, dword [ecx + 8]
xor ebx, ebx
cmp eax, ebx
je 0x48191d
cmp word [eax], bx
je 0x48191d
mov ecx, dword [ecx]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x108]
push ebx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x2c]
push edx
dec ecx
push ecx
push eax
call fcn.0046eb90
mov eax, dword [esp + 0x34]
mov ecx, dword [0x5c3218]
cdq
idiv ecx
add esp, 0x14
cmp dword [esp + 0x44], 0
mov edi, eax
je 0x481860
add edi, dword [esp + 0x10]
jmp 0x481877
test edi, edi
je 0x481915
sub edi, dword [esp + 0x10]
mov edx, 0
sets dl
dec edx
and edi, edx
xor ebp, ebp
cmp dword [esi + 0x88], ebp
jne 0x4818b9
xor eax, eax
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ecx
cmp edi, eax
jl 0x4818b9
mov ebx, dword [esi + 0x10c]
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
idiv ebx
mov ebp, 1
imul ebx, eax
sub ecx, ebx
test eax, eax
jle 0x4818b1
lea ebp, [eax + 1]
test ecx, ecx
jle 0x4818bf
add ebp, ecx
jmp 0x4818bf
test edi, edi
jle 0x4818bf
mov ebp, edi
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 4
push 0
mov ebx, eax
push edi
push ebx
mov ecx, esi
call fcn.0046f200
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x20]
push ebp
push ebx
push eax
push ecx
push eax
push 0
mov ecx, esi
call fcn.00480ee0
add dword [esp + 0x1c], eax
push ebx
call fcn.004ff96a
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
add ecx, 0x24
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jle 0x481800
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
cmp eax, 1
jne 0x481969
cmp ecx, eax
jle 0x48198e
mov eax, dword [esi + 0x314]
sub eax, 1
js 0x48198e
mov ebx, dword [esi + 0x310]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebx + eax + 0x24], ecx
jmp 0x48198e
cmp eax, 2
jne 0x48198e
cmp ecx, 1
jle 0x48198e
mov eax, dword [esi + 0x328]
sub eax, 1
js 0x48198e
mov ebx, dword [esi + 0x324]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + ebx + 0x24], ecx
xor eax, eax
mov dword [esi + 0x198], edx
mov dword [esi + 0x19c], eax
cmp dword [esi + 0x78], eax
jne 0x4819a9
cmp dword [esi + 0x84], eax
je 0x4819c5
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x184]
je 0x4819c5
mov dword [esi + 0x1a0], 0xffffffff
mov dword [esi + 0x1a4], eax
cmp dword [esi + 0x100], eax
je 0x481a6c
sub ebp, edx
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x38]
mov dword [esi + 0x100], 1
mov dword [esi + 0x1ac], ebp
mov dword [esi + 0x1a8], edx
cmp dword [esp + 0x4c], edi
je 0x481a03
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x1b4], ecx
jmp 0x481a30
mov ecx, dword [esi + 0x2e8]
dec ecx
cmp edi, ecx
jne 0x481a29
mov dword [esi + 0x1b0], edi
lea ecx, [edi + edi*8]
mov edi, dword [esi + 0x334]
mov ecx, dword [edi + ecx*4]
dec ecx
mov dword [esi + 0x1b4], ecx
jmp 0x481a36
inc edi
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x1b0], edi
cmp dword [esi + 0x1b8], eax
jl 0x481a60
mov edx, dword [esi + 0x1b0]
mov eax, dword [esi + 0x1b4]
pop edi
mov dword [esi + 0x194], eax
mov dword [esi + 0x190], edx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
mov dword [esi + 0x194], ebp
mov dword [esi + 0x190], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c