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

Disassembly:
sub esp, 0x48
mov word [esp + 2], 0xfffe
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x40], esi
push ebp
mov ebx, 1
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x11], bl
push 0x8000
push 0x10000
cmp byte [eax + 0x48], bl
sbb edx, edx
mov eax, dword [esp + 0x68]
add edx, ebx
push eax
mov edi, dword [esp + 0x68]
mov dword [esp + 0x58], edx
push edi
call fcn.004aab00
mov dword [esp + 0x3c], eax
add esp, 0x10
cmp eax, esi
je 0x462fa7
mov eax, dword [esp + 0x60]
push 0x8000
push 0x202
push eax
push edi
call fcn.004aa140
mov dword [esp + 0x24], eax
add esp, 0x10
cmp eax, esi
je 0x462fa7
lea esi, [eax + 0x101]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x44]
mov eax, ecx
mov dword [esp + 0x18], ecx
sar eax, 5
cmp eax, 0x40000
jg 0x462d0a
mov eax, 0x40000
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x40]
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], eax
cmp ecx, eax
jge 0x462f4f
lea eax, [ecx*4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x3c]
shl eax, 2
lea edx, [ecx + ecx*4]
mov dword [esp + 0x48], edx
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jle 0x462d9a
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
push edx
cdq
idiv dword [esp + 0x1c]
add dword [esp + 0x20], ecx
push eax
push 0x11c3
push 6
push edi
call fcn.004bda00
add esp, 0x14
mov eax, dword [esp + 0x2c]
push 0x10000
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [esp + 0x2c]
push ecx
mov eax, dword [esp + 0x78]
push edx
mov ecx, dword [esp + 0x78]
push eax
push ecx
push edi
call fcn.004cb180
add esp, 0x1c
test ax, ax
jne 0x462fb7
mov eax, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x30], 0
mov byte [eax + 0xffff], 0
cmp dword [esp + 0x20], ebp
jle 0x462f39
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
add ecx, ebp
add edx, ecx
mov ecx, dword [esp + 0x14]
test bl, bl
jne 0x462dff
mov ecx, esi
mov eax, 0
test edi, edi
je 0x462e0e
mov eax, dword [edi + 0xac]
push 0x100
push edx
push ecx
push eax
call fcn.004abf30
mov ecx, dword [esp + 0x5c]
add esp, 0x10
movzx eax, ax
mov dword [esp + 0x40], eax
lea edx, [ecx + eax + 1]
add ebp, edx
cmp ebp, 0xff00
jl 0x462e4a
cmp dword [esp + 0x30], 0
jne 0x462f31
mov dword [esp + 0x20], 1
cmp byte [esp + 0x11], 0
je 0x462e99
test edi, edi
je 0x462e64
mov eax, dword [edi + 0xac]
test eax, eax
je 0x462e64
mov eax, dword [eax + 0x2c]
jmp 0x462e66
xor eax, eax
mov ecx, dword [esp + 0x14]
xor bl, bl
push ecx
push esi
push eax
call fcn.004ade40
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], 0
mov byte [esp + 0x1d], 0
add esp, 0xc
jmp 0x462f19
mov eax, 0
test edi, edi
je 0x462ea8
mov eax, dword [edi + 0xac]
mov ecx, dword [esp + 0x14]
push esi
push ecx
push eax
call fcn.004ac2e0
add esp, 0xc
test ax, ax
jne 0x462ec2
inc dword [esp + 0x28]
jmp 0x462f19
mov ecx, esi
test bl, bl
jne 0x462ecc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
push edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push edx
push edi
call dword [esp + 0x8c]
add esp, 0x1c
test ax, ax
jne 0x462fb7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp bl, 1
mov dword [esp + 0x34], eax
sbb bl, bl
mov dword [esp + 0x38], ecx
neg bl
mov dword [esp + 0x28], 0
inc dword [esp + 0x30]
inc dword [esp + 0x44]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x20]
jl 0x462de9
jmp 0x462f39
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x50], ecx
jg 0x462d51
test bl, bl
jne 0x462f57
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push esi
push eax
push ecx
push edi
call dword [esp + 0x8c]
add esp, 0x1c
test ax, ax
jne 0x462fb7
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
jle 0x462f9e
push eax
push 0x64
push 0x11c3
push 6
push edi
call fcn.004bda00
add esp, 0x14
mov word [esp + 0x12], 0
jmp 0x462fb7
push 0xffff9343
push 2
push edi
call fcn.004bda00
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
push ecx
push eax
push edi
call fcn.004aa460
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
add esp, 0xc
push ecx
push edx
push edi
call fcn.004aad00
mov ax, word [esp + 0x1e]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret