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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], eax
xor edx, edx
push esi
mov ecx, dword [ebx + 0x10]
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x94]
div dword [ecx + 0x98]
or byte [ecx + 0x14], 4
mov esi, dword [ebx + 0x14]
mov edx, eax
mov edi, dword [ecx + 0x18]
lea ebx, [edx - 1]
not ebx
lea eax, [esi - 1]
and ebx, eax
inc ebx
mov dword [esp + 0x20], ebx
cmp esi, edi
jbe 0x48b29d
sub esi, ebx
inc esi
mov dword [esp + 0x18], esi
jmp 0x48b2b7
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x48b2b1
mov esi, edi
sub esi, ebx
inc esi
mov dword [esp + 0x18], esi
jmp 0x48b2b7
mov esi, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], 0
test esi, esi
jle 0x48b4d5
mov edi, ebx
lea esp, [esp]
cmp dword [esp + 0x1c], 0
jne 0x48b4d5
mov eax, dword [esp + 0x2c]
cmp edi, dword [eax + 0x14]
je 0x48b328
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x48b328
mov edx, edi
mov ecx, eax
call fcn.00484de0
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x48b328
mov edx, edi
call fcn.0048adb0
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x48b380
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x14]
cmovne eax, edx
mov dword [esp + 0x14], eax
call fcn.0048ae10
jmp 0x48b380
mov eax, dword [0x5c4a3c]
cdq
idiv dword [ecx + 0x98]
inc eax
cmp edi, eax
je 0x48b384
lea eax, [esp + 0x24]
mov edx, edi
push 0
push eax
call fcn.0048a9c0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x48b380
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.0048b090
test byte [esi + 0x18], 4
mov ecx, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0048ae10
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
inc edi
inc eax
mov dword [esp + 0x28], eax
cmp eax, esi
jl 0x48b2d0
cmp dword [esp + 0x1c], 0
jne 0x48b4d5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48b4d5
jmp 0x48b3b4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xcc]
push 0
push ebx
push dword [eax + 0x28]
call dword [0x5c4b9c]
mov ecx, dword [esp + 0x1c]
mov edx, eax
add esp, 0xc
mov ecx, dword [ecx + 0xcc]
test edx, edx
je 0x48b4c5
mov eax, dword [edx + 4]
cmp dword [eax], 0
jne 0x48b3f2
push edx
mov edx, ebx
call fcn.004855d0
add esp, 4
jmp 0x48b409
xor edx, edx
cmp dx, word [eax + 0x1a]
jne 0x48b3fd
inc dword [ecx + 0xc]
inc word [eax + 0x1a]
cmp ebx, 1
jne 0x48b409
mov dword [ecx + 0x2c], eax
test eax, eax
je 0x48b4c5
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x48b45f
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x48b466
mov ecx, eax
call fcn.00485670
cmp dword [ebx + 0x78], 0
jne 0x48b4c1
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x48b4c1
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x48b4ba
test al, al
je 0x48b4ba
cmp al, 2
jb 0x48b4a6
mov eax, dword [0x5cfa50]
test eax, eax
je 0x48b492
call eax
mov ecx, ebx
call fcn.0048b7c0
mov eax, dword [0x5cfa54]
test eax, eax
je 0x48b4ba
call eax
jmp 0x48b4ba
cmp byte [ebx + 4], 0
jne 0x48b4ba
push 0
xor edx, edx
mov ecx, ebx
call fcn.00487e10
add esp, 4
mov ecx, ebx
call fcn.00487c80
mov ebx, dword [esp + 0x20]
inc ebx
dec esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
jne 0x48b3b0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
and byte [eax + 0x14], 0xfb
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret