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

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x24]
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
push esi
push edi
xor edi, edi
shr edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
jmp 0x465c87
mov edx, dword [esp + 0x1c]
movsx eax, byte [ebp + 0x44]
mov ebx, dword [ebp + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x465cd6
cmp byte [ebx + 0xc], al
je 0x465e4f
lea esi, [ebp + 0x7c]
push esi
mov edi, ebx
call fcn.00465b50
mov edi, eax
add esp, 4
test edi, edi
jne 0x465e4f
mov ecx, dword [esi]
xor edx, edx
mov byte [ebp + 0x44], 1
mov word [ebp + 0x46], dx
mov word [ebp + 0x48], ax
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x74], ecx
jmp 0x465e47
cmp byte [ebx + 0xc], 0
jne 0x465ce8
movzx ecx, word [ebx + 0x14]
cmp ecx, edx
jle 0x465e4f
mov esi, dword [ebp + eax*4 + 0x74]
movzx edx, word [ebp + eax*2 + 0x46]
mov edi, dword [esi + 0x48]
test byte [edi + 0x1c], 4
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], edx
je 0x465d29
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edi + 0x18]
jb 0x465d29
cmp dword [eax + 0x60], 0
je 0x465d5e
mov ecx, edi
call fcn.00420280
test eax, eax
je 0x465d25
push edi
call fcn.004326a0
add esp, 4
jmp 0x465d54
xor eax, eax
jmp 0x465d54
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x465d34
mov edi, ecx
jmp 0x465d56
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x465d4d
push edi
call fcn.004619f0
add esp, 4
jmp 0x465d54
mov eax, edi
call fcn.00461930
mov edi, eax
test edi, edi
jne 0x465ddf
cmp byte [ebx + 3], 0
je 0x465d97
cmp byte [ebx + 0xc], 1
jne 0x465d97
mov ax, word [ebx + 0x1a]
cmp ax, word [ebx + 0x16]
jne 0x465d97
cmp dword [esi + 4], 1
je 0x465d97
movzx ecx, word [esi + 0x16]
cmp ecx, dword [esp + 0x18]
jne 0x465d97
lea edx, [esp + 0x24]
push edx
push ebx
push esi
call fcn.00464520
add esp, 0xc
mov edi, eax
jmp 0x465ddf
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x20]
push eax
call fcn.0042b610
movzx ecx, byte [ebp + 3]
and ecx, 1
xor edx, edx
cmp dword [esp + 0x24], 1
push ecx
sete dl
mov ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, ebx
push edx
push eax
push esi
call fcn.00464770
mov esi, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
test esi, esi
je 0x465dd7
call fcn.0041f9c0
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x48]
mov byte [ebx + 0xc], 0
test byte [eax + 0x1c], 0x20
je 0x465e34
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov ebx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov esi, dword [ebx]
dec eax
push edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.004983c0
push edx
push eax
mov eax, dword [esi + 0x48]
push ebx
call eax
add esp, 0x10
jmp 0x465e39
call fcn.0041f400
dec byte [ebp + 0x44]
movsx ecx, byte [ebp + 0x44]
mov edx, dword [ebp + ecx*4 + 0x78]
mov dword [ebp + 0x74], edx
test edi, edi
je 0x465c83
mov esi, dword [esp + 0x10]
test esi, esi
je 0x465e5c
call fcn.0041f9c0
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049473c
add esp, 0x28
ret