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

Disassembly:
push 0xffffffffffffffff
push 0x4ed367
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x4cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x4e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4f4]
mov ebx, ecx
mov ecx, dword [esp + 0x4f8]
mov dword [esp + 0x1c], ecx
test al, 1
je 0x4bea3c
and eax, 0xfffffffd
push ecx
push eax
mov eax, dword [ebx + 8]
call eax
test eax, eax
jne 0x4bec2d
mov eax, dword [esp + 0x4f4]
test al, 2
je 0x4bec20
lea ecx, [esp + 0x14]
and eax, 0xfffffffe
push ecx
mov dword [esp + 0x1c], eax
call fcn.0046d4f0
mov edx, dword [ebx + 0x40]
mov eax, dword [eax]
add edx, 0xf
add esp, 4
cmp eax, edx
seta al
test al, al
je 0x4bec0c
lea eax, [esp + 0x14]
push eax
call fcn.0046d4f0
mov ecx, dword [eax]
mov dword [ebx + 0x40], ecx
lea ebp, [ebx + 0x44]
add esp, 4
mov ecx, ebp
call fcn.00435400
push 0x400
lea edx, [esp + 0xe4]
push 0
push edx
call fcn.004caf20
mov ecx, dword [ebx + 0x30]
add esp, 0xc
push 0x400
lea eax, [esp + 0xe4]
push eax
push 0x103
call ecx
test eax, eax
jle 0x4bec0c
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x84]
call fcn.0042e060
push 0x420490
lea ecx, [esp + 0x44]
mov dword [esp + 0x4f0], 0
call fcn.0042e060
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4f4], 1
call fcn.00468e60
lea ecx, [esp + 0x40]
mov byte [esp + 0x4ec], 3
call fcn.00447570
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0xa4]
call fcn.00469100
cmp dword [esp + 0x78], 0
mov byte [esp + 0x4ec], 4
je 0x4bebd0
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x60]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00438b90
push 1
mov ecx, ebp
mov edi, eax
call fcn.004378b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xa4]
mov dword [eax], edi
call fcn.00469100
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x4f0], 5
call fcn.00466f80
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x4ec], 4
mov dword [esp + 0x20], 0x41c480
jb 0x4bebb0
mov eax, dword [esp + 0x28]
push eax
call fcn.004cada5
add esp, 4
cmp dword [esp + 0x78], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x4beb42
lea ecx, [esp + 0x60]
mov byte [esp + 0x4ec], 3
call fcn.00447570
lea ecx, [esp + 0xa0]
mov byte [esp + 0x4ec], 0
call fcn.00476610
lea ecx, [esp + 0x80]
mov dword [esp + 0x4ec], 0xffffffff
call fcn.00447570
cmp dword [ebx + 0x5c], 0
jne 0x4bec57
mov ecx, dword [ebx + 0x24]
push 0x69
call ecx
mov eax, dword [esp + 0x4f4]
test al, 3
jne 0x4bec2b
mov edx, dword [ebx + 0x24]
push 0x26
call edx
xor eax, eax
mov ecx, dword [esp + 0x4e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4cc]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x4dc
ret 8
mov edx, dword [ebx + 0x58]
mov edi, dword [edx]
mov ebp, dword [ebx + 0x44]
nop
mov esi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x44]
test ebp, ebp
je 0x4bec6e
cmp ebp, eax
je 0x4bec73
call fcn.004caf0d
cmp edi, esi
je 0x4bec19
test ebp, ebp
jne 0x4bec97
call fcn.004caf0d
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4bec8c
call fcn.004caf0d
cmp dword [edi + 0x24], 0x10
jb 0x4bec9c
mov eax, dword [edi + 0x10]
jmp 0x4bec9f
mov eax, dword [ebp]
jmp 0x4bec82
lea eax, [edi + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push eax
call ecx
test eax, eax
jne 0x4bec2d
test ebp, ebp
jne 0x4becd2
call fcn.004caf0d
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4becce
call fcn.004caf0d
mov edi, dword [edi]
jmp 0x4bec60
mov eax, dword [ebp]
jmp 0x4becc4