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

Disassembly:
sub esp, 0x38
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4657ad
push eax
call dword [0x52e328]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x4657c8
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x4657c8
push eax
call fcn.0046fbd0
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x4657e0
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4657e0
push eax
call dword [0x52e328]
add esp, 4
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x4657f5
cmp esi, 5
je 0x4657f5
cmp esi, 6
jne 0x465f10
cmp dword [ebp], 0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x3c], 0
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
je 0x465828
cmp byte [edx + 0x14], 2
jne 0x465828
mov esi, 5
jmp 0x465845
xor esi, esi
cmp byte [ecx + 8], 0
jne 0x465845
push esi
push esi
push ecx
call fcn.004a6510
add esp, 0xc
mov dword [esp + 0x3c], 1
mov esi, eax
cmp dword [ebp + 0xc], 0
jne 0x46586e
test esi, esi
jne 0x465896
mov eax, dword [ebp + 0x18]
push esi
push esi
mov eax, dword [eax + 4]
push dword [eax + 0x24]
push dword [ebp + 4]
call fcn.004a9720
add esp, 0x10
cmp eax, 7
jne 0x465872
mov esi, eax
jmp 0x465896
test esi, esi
jne 0x465896
cmp dword [ebp + 0xc], 0
jne 0x465896
lea eax, [ebp + 8]
push eax
push 2
push dword [ebp + 4]
call fcn.004a6510
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x465896
mov dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov edx, dword [eax + 4]
mov eax, dword [ebp + 4]
mov ebx, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
movzx eax, byte [eax + 5]
mov dword [esp + 0x34], eax
test esi, esi
jne 0x4658cc
cmp eax, 5
jne 0x4658cc
cmp ebx, ecx
je 0x4658cc
lea esi, [eax + 3]
mov edx, dword [edx + 0x30]
xor ebx, ebx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x50]
test eax, eax
js 0x4658e1
cmp ebx, eax
jge 0x465952
mov edi, dword [ebp + 0x10]
cmp edi, edx
ja 0x465952
test esi, esi
jne 0x46598d
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x52e2d4]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x465948
push 2
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x465948
mov eax, dword [esp + 0x1c]
push esi
push dword [eax + 4]
push edi
push ebp
call fcn.0046cda0
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x465948
push eax
call fcn.004c5db0
add esp, 4
inc dword [ebp + 0x10]
inc ebx
mov edx, dword [esp + 0x14]
jmp 0x4658d5
test esi, esi
jne 0x46598d
mov eax, edx
mov dword [ebp + 0x24], edx
sub eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], edx
ja 0x465996
cmp dword [ebp + 0x28], esi
jne 0x465e7c
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebp + 0x2c], eax
mov dword [ecx + 0x58], ebp
mov dword [ebp + 0x28], 1
jmp 0x465e7c
cmp esi, 0x65
jne 0x465e7c
test edx, edx
jne 0x4659ee
mov edi, dword [ebp + 4]
cmp byte [edi + 9], dl
je 0x4659b3
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x4659b3
push edi
call fcn.0046fbd0
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x30], 0
push dword [edi + 4]
call fcn.00496070
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x4659de
dec dword [edi + 0xc]
jne 0x4659de
push edi
call fcn.004eb950
add esp, 4
mov ebx, 1
test esi, esi
je 0x4659f2
cmp esi, 0x65
jne 0x465a54
jmp 0x4659f2
mov ebx, dword [esp + 0x14]
mov edi, dword [ebp + 4]
mov eax, dword [ebp + 8]
inc eax
mov dword [esp + 0x40], eax
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x465a18
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x465a18
push edi
call fcn.0046fbd0
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x38]
push dword [eax + 0x48]
mov dword [esp + 0x3c], ecx
call fcn.004c5ea0
mov esi, eax
add esp, 4
test esi, esi
jne 0x465a40
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
bswap eax
mov dword [ecx + 0x28], eax
cmp byte [edi + 9], 0
je 0x465a54
dec dword [edi + 0xc]
jne 0x465a54
push edi
call fcn.004eb950
add esp, 4
test esi, esi
jne 0x465e7c
mov eax, dword [ebp]
test eax, eax
je 0x465a6c
push eax
call fcn.004ca850
add esp, 4
cmp dword [esp + 0x34], 5
jne 0x465af8
mov eax, dword [ebp + 4]
mov ecx, 0xffdf
push 0
push 0
push eax
mov edi, dword [eax + 4]
mov dword [esp + 0x4c], eax
and word [edi + 0x18], cx
call fcn.004a6510
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x465ae7
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x38], eax
cmp byte [eax + 0x12], 2
jne 0x465ab3
cmp byte [eax + 0x13], 2
je 0x465ae7
push 0
push 2
push dword [esp + 0x48]
call fcn.004a6510
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x465ae7
mov eax, dword [edi + 0xc]
push dword [eax + 0x48]
call fcn.004c5ea0
mov esi, eax
add esp, 4
test esi, esi
jne 0x465ae7
mov eax, dword [esp + 0x38]
mov word [eax + 0x12], 0x202
mov eax, 0xffdf
and word [edi + 0x18], ax
test esi, esi
jne 0x465e7c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
cmp ecx, edi
jge 0x465b31
mov eax, edi
cdq
idiv ecx
mov ecx, eax
lea eax, [ecx - 1]
add eax, ebx
cdq
idiv ecx
mov ecx, dword [ebp + 4]
xor edx, edx
mov edi, eax
mov eax, dword [0x52e2d4]
mov ecx, dword [ecx + 4]
div dword [ecx + 0x24]
mov ecx, dword [esp + 0x4c]
inc eax
cmp edi, eax
jne 0x465b3b
dec edi
jmp 0x465b3b
mov eax, ecx
cdq
idiv edi
mov edi, eax
imul edi, ebx
cmp ecx, dword [esp + 0x18]
jge 0x465dcf
mov eax, ecx
cdq
mov ecx, eax
mov dword [esp + 0x1c], edx
push dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x2c], ecx
cdq
push ecx
push edx
push eax
call fcn.004021f0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov ebx, dword [eax + 0x3c]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + 0x18]
cmp edi, ebx
ja 0x465bd4
mov eax, dword [ebp + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x52e2d4]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x465bcd
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x465bcd
push dword [esp + 0x20]
call fcn.004c5ea0
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x465bcd
push eax
call fcn.004c5db0
add esp, 4
inc edi
test esi, esi
je 0x465b77
jmp 0x465bea
test esi, esi
jne 0x465bea
mov eax, dword [esp + 0x10]
push 1
push esi
push eax
call fcn.004c4730
add esp, 0xc
mov esi, eax
mov eax, dword [0x52e2d4]
add eax, dword [esp + 0x18]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
cmp eax, edx
jg 0x465c14
jl 0x465c22
mov eax, dword [esp + 0x14]
cmp ecx, eax
jae 0x465c18
jmp 0x465c22
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
mov eax, dword [0x52e2d4]
add eax, dword [esp + 0x4c]
cdq
mov dword [esp + 0x30], edx
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov edi, edx
test esi, esi
jne 0x465e7c
mov eax, dword [esp + 0x28]
cmp edi, dword [esp + 0x20]
jg 0x465d2a
jl 0x465c58
cmp ebx, ecx
jae 0x465d2a
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push dword [esp + 0x24]
push eax
push edi
push ebx
call fcn.00402060
inc eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x465ca9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push edi
push ebx
push dword [esp + 0x54]
mov ecx, dword [edx]
push dword [eax + 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x465d07
test byte [edx + 0x1c], 0x20
je 0x465cfe
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x30]
jmp 0x465d07
push edx
call fcn.004c6f10
add esp, 4
mov eax, dword [esp + 0x28]
add ebx, eax
mov ecx, dword [esp + 0x34]
adc edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
test esi, esi
je 0x465c44
jmp 0x465e7c
test esi, esi
jne 0x465e7c
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x465e7c
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x3c], ecx
jl 0x465d78
jg 0x465d66
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jbe 0x465d78
mov eax, dword [ebx]
push ecx
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x465e7c
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x465daa
push esi
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
je 0x465daa
test esi, esi
jne 0x465e7c
jmp 0x465dac
xor esi, esi
cmp byte [ebx + 7], 0
jne 0x465de5
movzx ecx, byte [ebx + 0xa]
mov edx, dword [ebx + 0x3c]
test ecx, ecx
je 0x465dcb
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
add esp, 8
jmp 0x465de3
xor esi, esi
jmp 0x465de5
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
mov dword [eax + 0x18], edi
call fcn.004c4730
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x465e7c
mov edi, dword [ebp + 4]
cmp byte [edi + 8], 0
je 0x465e77
cmp byte [edi + 9], 0
je 0x465e12
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x465e12
push edi
call fcn.0046fbd0
add esp, 4
cmp byte [edi + 8], 2
jne 0x465e5a
mov ebx, dword [edi + 4]
push dword [ebx]
call fcn.004c48e0
mov esi, eax
add esp, 4
test esi, esi
je 0x465e41
cmp byte [edi + 9], 0
je 0x465e7c
dec dword [edi + 0xc]
jne 0x465e7c
push edi
call fcn.004eb950
add esp, 4
jmp 0x465e7c
dec dword [edi + 0x14]
push dword [ebx + 0x40]
mov byte [ebx + 0x14], 1
call fcn.004a60b0
add esp, 4
mov dword [ebx + 0x40], 0
push edi
call fcn.0046f770
add esp, 4
cmp byte [edi + 9], 0
je 0x465e77
dec dword [edi + 0xc]
jne 0x465e77
push edi
call fcn.004eb950
add esp, 4
mov esi, 0x65
cmp dword [esp + 0x44], 0
je 0x465efe
push 0
push dword [ebp + 0x18]
call fcn.004a6b60
mov edi, dword [ebp + 0x18]
add esp, 8
cmp byte [edi + 8], 0
je 0x465efe
cmp byte [edi + 9], 0
je 0x465eb1
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x465eb1
push edi
call fcn.0046fbd0
add esp, 4
cmp byte [edi + 8], 2
jne 0x465ee1
mov ebx, dword [edi + 4]
push dword [ebx]
call fcn.004c48e0
add esp, 4
test eax, eax
jne 0x465eea
dec dword [edi + 0x14]
push dword [ebx + 0x40]
mov byte [ebx + 0x14], 1
call fcn.004a60b0
add esp, 4
mov dword [ebx + 0x40], 0
push edi
call fcn.0046f770
add esp, 4
cmp byte [edi + 9], 0
je 0x465efe
dec dword [edi + 0xc]
jne 0x465efe
push edi
call fcn.004eb950
add esp, 4
pop edi
pop ebx
cmp esi, 0xc0a
jne 0x465f0d
mov esi, 7
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp]
test eax, eax
je 0x465f28
mov eax, dword [eax + 0xc]
test eax, eax
je 0x465f28
push eax
call dword [0x52e330]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x465f3f
dec dword [eax + 0xc]
jne 0x465f3f
push eax
call fcn.004eb950
add esp, 4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x465f53
push eax
call dword [0x52e330]
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x38
ret