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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302bc
call fcn.00426e10
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
lea ecx, [esp + 0x102d2]
push ecx
mov word [esp + 0x102d4], ax
call fcn.00414f50
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00408840
lea ecx, [esp + 0x50]
call fcn.00408840
lea ecx, [esp + 0x40]
call fcn.00408840
lea ecx, [esp + 0x24]
call fcn.00408840
mov ebx, dword [ebp + 0x10]
mov edi, 0x47f878
mov dword [esp + 0x20], 0
call fcn.004102d0
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [edx]
push 0x7fff
push eax
call fcn.0044c7d8
push eax
lea eax, [esp + 0x2d0]
push eax
call fcn.00414fe4
mov edx, dword [ebx + 4]
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x102c6], cx
mov eax, dword [edx + 4]
push 0x104
push eax
call fcn.0044c7d8
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00414fe4
mov edx, dword [ebx + 4]
xor ecx, ecx
mov word [esp + 0x2cc], cx
mov eax, dword [edx + 8]
add esp, 0xc
push eax
call fcn.0044c7d8
mov edi, eax
call fcn.00410b90
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push eax
mov dword [esp + 0x40], esi
call fcn.0044c7a6
xor ecx, ecx
push 0x47f954
push esi
mov word [esi + eax*2], cx
call fcn.0041700b
add esp, 8
test eax, eax
je 0x465081
push eax
lea eax, [esp + 0x28]
call fcn.00402710
push str.RUNWAIT
lea edx, [esp + 0x28]
push edx
call fcn.00437f5b
mov edi, eax
push 0x484c44
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x40], edi
call fcn.00437f5b
mov dword [esp + 0x34], eax
cmp edi, 0xffffffff
je 0x465103
cmp eax, 0xffffffff
je 0x465103
cmp eax, edi
jb 0x465103
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00455026
mov edi, 0x47f954
lea eax, [esp + 0x10]
call fcn.0040eb00
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub eax, ecx
dec eax
push eax
inc ecx
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044ccb3
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00455026
lea eax, [esp + 0x10]
call fcn.0040eb00
push edi
push 0
call fcn.0041700b
add esp, 8
test eax, eax
jne 0x464fd0
mov edi, 0x47f954
lea eax, [esp + 0x10]
call fcn.0040eb00
mov edi, 1
cmp dword [esp + 0x14], edi
jbe 0x4650be
lea esi, [esp + 0x10]
call fcn.00410340
cmp word [eax], 0x7c
jne 0x4650b3
call fcn.00410340
xor edx, edx
mov word [eax], dx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x46509a
mov esi, dword [esp + 0x3c]
push esi
call fcn.00413549
mov edi, dword [ebp + 0x14]
add esp, 4
cmp edi, 6
jb 0x4650df
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x14]
push eax
call fcn.0044c77e
mov dword [esp + 0x20], eax
cmp edi, 5
jb 0x465145
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x10]
push eax
call fcn.0044c7d8
push eax
lea edx, [esp + 0x102cc]
push edx
call fcn.00413146
add esp, 8
jmp 0x46514f
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x90
push ecx
call fcn.00454313
lea ecx, [esp + 0x24]
call fcn.0040d030
lea ecx, [esp + 0x40]
call fcn.0040d030
lea ecx, [esp + 0x50]
call fcn.0040d030
lea ecx, [esp + 0x10]
call fcn.0040d030
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov word [esp + 0x102c8], ax
push 0x58
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.00414f50
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], eax
add esp, 0xc
lea ecx, [esp + 0x2c8]
lea edx, [esp + 0x102c8]
lea eax, [esp + 0xb8]
xor esi, esi
mov dword [esp + 0x60], 0x58
mov dword [esp + 0x90], ecx
mov dword [esp + 0x80], 0xffff
mov dword [esp + 0x7c], edx
mov dword [esp + 0x8c], eax
cmp edi, 4
jb 0x46524e
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040d420
cmp eax, 0x1f
jg 0x46524e
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040d420
test eax, eax
jl 0x46524e
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
mov esi, 0x80004
call fcn.0040d420
test al, 0x10
je 0x4651f1
mov esi, 0x80006
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040d420
test al, 8
je 0x465206
or esi, 0x2000
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040d420
test al, 4
je 0x46521b
or esi, 0x200
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040d420
test al, 2
je 0x465230
or esi, 0x800
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040d420
test al, 1
je 0x465245
or esi, 0x1000
mov dword [esp + 0x94], esi
jmp 0x465259
mov dword [esp + 0x94], 0x80004
cmp byte [ebp + 0x18], 0
je 0x4652ff
lea edx, [esp + 0x60]
push edx
call dword [0x47d0b8]
test eax, eax
je 0x46531c
test esi, 0x200
je 0x46530e
mov eax, dword [esp + 0x7c]
push eax
call fcn.00414fca
mov ecx, dword [esp + 0x80]
add esp, 4
mov esi, eax
push ecx
lea eax, [esp + 0x44]
call fcn.00402710
mov edx, dword [esp + 0x7c]
lea eax, [edx + esi*2 + 2]
mov dword [esp + 0x7c], eax
cmp word [eax], 0
je 0x4652f1
jmp 0x4652b9
push eax
call fcn.00414fca
mov esi, eax
add esp, 4
mov edi, 0x47f954
lea eax, [esp + 0x40]
call fcn.0040eb00
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x40]
call fcn.0040eb00
mov eax, dword [esp + 0x7c]
lea eax, [eax + esi*2 + 2]
mov dword [esp + 0x7c], eax
cmp word [eax], 0
jne 0x4652b9
mov edi, dword [esp + 0x40]
mov ebx, dword [ebp + 0x10]
call fcn.004102d0
jmp 0x465328
lea ecx, [esp + 0x60]
push ecx
call dword [0x47d0b4]
test eax, eax
je 0x46531c
mov edi, dword [esp + 0x7c]
mov ebx, dword [ebp + 0x10]
call fcn.004102d0
jmp 0x465328
mov eax, dword [ebp + 8]
push 0
push 1
call fcn.0040c8d0
lea ecx, [esp + 0x24]
call fcn.0040d030
lea ecx, [esp + 0x40]
call fcn.0040d030
lea ecx, [esp + 0x50]
call fcn.0040d030
lea ecx, [esp + 0x10]
call fcn.0040d030
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14