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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
xor edx, edx
mov dword [esp + 0x18], edx
cmp eax, ecx
jbe 0x460428
mov dword [esp + 0x24], edx
div ecx
or byte [ebx + 0x14], 4
mov edx, dword [edi + 0x14]
lea ecx, [edx - 1]
lea esi, [eax - 1]
not esi
and esi, ecx
mov ecx, dword [ebx + 0x18]
inc esi
mov dword [esp + 0x2c], esi
cmp edx, ecx
jbe 0x460224
mov edi, edx
sub edi, esi
inc edi
mov dword [esp + 0x14], edi
jmp 0x46023d
lea edx, [esi + eax - 1]
cmp edx, ecx
jbe 0x460237
sub ecx, esi
inc ecx
mov dword [esp + 0x14], ecx
mov edi, ecx
jmp 0x46023d
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
jle 0x460419
mov edi, esi
mov dword [esp + 0x20], esi
lea esp, [esp]
cmp dword [esp + 0x18], 0
jne 0x460419
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
je 0x460387
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x460387
mov eax, edi
call fcn.0042f6fa
test eax, eax
je 0x460387
lea ecx, [esp + 0x28]
push ecx
push 0
push edi
mov edi, dword [ebx + 0xdc]
mov dword [esp + 0x34], 0
call fcn.0043874a
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4602c8
test byte [eax + 0x18], 4
je 0x4602c3
mov dword [esp + 0x24], 1
call fcn.0043d42a
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
inc edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
cmp eax, dword [esp + 0x14]
jl 0x46025a
cmp dword [esp + 0x18], 0
jne 0x460419
cmp dword [esp + 0x24], 0
je 0x460419
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0xdc]
lea eax, [esp + 0x28]
push eax
add ecx, esi
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0043874a
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x460406
or word [eax + 0x18], 4
mov cx, word [eax + 0x18]
mov esi, dword [eax + 0x10]
test cl, 0x40
je 0x4603e2
dec dword [esi + 0x78]
mov edx, dword [esi + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edi, dword [ecx]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004ce8ca
push edx
mov edx, dword [edi + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x4603e7
mov eax, dword [0x100b7120]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x4602cc
push 0
lea edx, [esp + 0x20]
push edx
push edi
push ebx
call fcn.0048dd3a
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4602cc
mov eax, dword [esp + 0x1c]
call fcn.0045a86a
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test byte [eax + 0x18], 4
je 0x4603d8
mov dword [esp + 0x24], 1
call fcn.0043d42a
jmp 0x4602cc
call fcn.004386ca
cmp dword [esi + 0x78], 0
jne 0x460402
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x460402
push esi
call fcn.0048bb3a
add esp, 4
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jl 0x460302
and byte [ebx + 0x14], 0xfb
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.0045a86a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret