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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0x18]
mov ebx, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov esi, dword [eax + 0x24]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
cmp esi, eax
jl 0x466350
mov dword [ebp - 0x18], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call fcn.004feb10
xor edi, edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
cmp esi, dword [ebp - 0x14]
je 0x466381
cmp byte [ebx + 0xc], 0
je 0x466381
mov edi, 8
mov ecx, eax
mov ebx, edx
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
sbb ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
test edi, edi
jne 0x4664ef
lea esp, [esp]
cmp ebx, edx
jg 0x4664ef
jl 0x4663b2
cmp ecx, eax
jae 0x4664ef
mov eax, dword [ebp - 0x14]
cdq
push ebx
push edx
push eax
push ebx
push ecx
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
call fcn.004fea30
mov dword [ebp - 0x28], ebx
pop ebx
mov dword [ebp - 0x28], ecx
lea ecx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov eax, dword [0x5857f8]
div dword [esi + 0x24]
inc eax
cmp ecx, eax
je 0x4664ce
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x466476
push dword [ebp + 0xc]
call fcn.004a9c20
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x466476
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
add ebx, dword [ebp - 0x28]
push edi
push esi
call fcn.004feb50
add eax, dword [ebp + 0x10]
push eax
push ebx
call fcn.005167a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, esi
or eax, edi
jne 0x466476
cmp dword [ebp + 0x14], eax
jne 0x466476
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
bswap eax
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4664cb
test byte [ecx + 0x1c], 0x20
je 0x4664c2
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4664cb
push ecx
call fcn.004aaac0
add esp, 4
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
adc ebx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
test edi, edi
jne 0x4664ef
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
jmp 0x4663a0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret