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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.004635e0
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4632fe
mov eax, dword [esi + 0x44]
cmp eax, ebp
mov dword [esp + 0x64], eax
jne 0x46307f
lea eax, [esp + 0x40]
push 0x377f0682
push eax
call fcn.00460880
lea ecx, [esp + 0x4c]
push 0x2de218
push ecx
call fcn.00460880
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x58]
push edi
push edx
call fcn.00460880
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.00460880
mov eax, dword [esi + 0x68]
add esp, 0x20
cmp eax, ebp
jne 0x462fda
lea edx, [esi + 0x54]
push edx
push 8
call fcn.0045a710
add esp, 8
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x14]
mov dword [esp + 0x50], eax
push edx
push ebp
lea eax, [esp + 0x48]
push 0x18
push eax
push 1
mov dword [esp + 0x68], ecx
call fcn.00463310
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00460880
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00460880
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push ebp
mov dword [esi + 0x4c], edx
mov edx, dword [esi + 8]
push ebp
lea ecx, [esp + 0x6c]
push 0x20
push ecx
push edx
mov dword [esi + 0x24], edi
mov byte [esi + 0x41], 0
mov dword [esi + 0x50], eax
mov byte [esi + 0x2f], 1
call fcn.0045f280
mov ebx, eax
add esp, 0x38
cmp ebx, ebp
jne 0x4632fe
mov al, byte [esi + 0x30]
test al, al
je 0x463083
mov eax, dword [esp + 0x78]
cmp eax, ebp
je 0x463083
and eax, 0x13
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00460150
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x463083
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
mov ecx, dword [esi + 8]
lea eax, [edi + 0x18]
mov dword [esp + 0x38], edx
cdq
push edx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x6c]
push ebp
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edx
call fcn.004b0c60
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov edi, edx
add ebp, 0x20
adc edi, 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x463131
jmp 0x4630d7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
inc edx
test ecx, ecx
mov dword [esp + 0x64], edx
je 0x4630f5
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4630f5
mov ecx, dword [esp + 0x70]
jmp 0x4630f7
xor ecx, ecx
push edi
push ebp
push ecx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00463fa0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4632fe
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
lea eax, [edx + 0x18]
cdq
add ebp, eax
mov eax, dword [ecx + 0xc]
adc edi, edx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4630d3
mov eax, dword [esp + 0x74]
test eax, eax
je 0x463264
mov eax, dword [esp + 0x78]
test al, 0x20
je 0x463202
mov cl, byte [esi + 0x31]
test cl, cl
je 0x4631ef
mov eax, dword [esi + 8]
push eax
call fcn.00462410
cdq
add esp, 4
mov dword [esp + 0x14], eax
add eax, ebp
mov ecx, edx
adc ecx, edi
mov dword [esp + 0x18], edx
sub eax, 1
push edx
mov edx, dword [esp + 0x18]
sbb ecx, 0
push edx
push ecx
push eax
call fcn.004b0ca0
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.004b0c60
cmp edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jg 0x463202
jl 0x4631a5
cmp ebp, eax
jae 0x463202
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
push edi
push ebp
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00463fa0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4632fe
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea eax, [edx + 0x18]
cdq
add ebp, eax
mov eax, dword [esp + 0x34]
adc edi, edx
inc ecx
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x4631a5
jg 0x463202
cmp ebp, dword [esp + 0x30]
jb 0x4631a5
jmp 0x463202
and eax, 0x13
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00460150
add esp, 8
mov ebx, eax
mov al, byte [esi + 0x2f]
test al, al
je 0x463264
mov edi, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
test edi, edi
jl 0x463264
jg 0x463219
test ebp, ebp
jb 0x463264
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, edx
mov edx, dword [esp + 0x20]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
call fcn.004b0c60
add eax, 0x20
adc edx, 0
cmp edx, edi
jl 0x46324d
jg 0x463255
cmp eax, ebp
ja 0x463255
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.00463570
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x6c]
mov edi, dword [esi + 0x44]
test ebp, ebp
je 0x46328f
test ebx, ebx
jne 0x4632fe
mov eax, dword [ebp + 0x14]
inc edi
push eax
push edi
push esi
call fcn.00463470
mov ebp, dword [ebp + 0xc]
add esp, 0xc
test ebp, ebp
mov ebx, eax
jne 0x46326f
test ebx, ebx
jne 0x4632fe
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4632c1
mov ecx, dword [esp + 0x1c]
inc edi
dec eax
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
push edx
push edi
push esi
call fcn.00463470
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x463293
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test ebx, ebx
jne 0x4632fe
mov eax, dword [esp + 0x68]
mov dword [esi + 0x44], edi
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x74]
test eax, eax
mov word [esi + 0x42], cx
je 0x4632fe
mov edx, dword [esi + 0x3c]
push esi
inc edx
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x48], edx
call fcn.004633e0
add esp, 4
mov dword [esi + 0xc], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50
ret