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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ffe31
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x324]
test eax, eax
je 0x4bf0aa
mov eax, dword [edi + 0x1fc]
test eax, eax
je 0x4bf0aa
mov eax, dword [edi + 0x1f8]
test eax, eax
je 0x4bf0aa
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x4bf0aa
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x4bf0aa
mov al, byte [ebx]
and al, 0xf
cmp al, 1
je 0x4bf0aa
mov cl, byte [esi]
and cl, 0xf
cmp cl, 1
je 0x4bf0aa
mov eax, dword [esi + 0x14]
cmp eax, dword [ebx + 0x14]
push ebp
jne 0x4bea7d
mov ecx, ebx
call fcn.00486150
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x38], edx
call fcn.00486150
cmp eax, ebp
jne 0x4bea7d
cmp edx, dword [esp + 0x38]
jne 0x4bea7d
mov eax, dword [esi + 0x10]
cmp eax, dword [ebx + 0x10]
jne 0x4bea7d
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx + 0xc]
je 0x4bedcd
mov ecx, dword [ebx + 4]
mov eax, ecx
test eax, eax
jbe 0x4bea8b
mov eax, dword [ebx + 8]
jmp 0x4bea8d
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00408700
mov ecx, dword [esi + 4]
mov eax, ecx
test eax, eax
mov dword [esp + 0x98], 0
jbe 0x4beab1
mov eax, dword [esi + 8]
jmp 0x4beab3
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00408700
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ebp
push edx
mov byte [esp + 0xa0], 1
call fcn.004d51b1
add esp, 8
test eax, eax
jne 0x4bf073
lea ecx, [esp + 0x10]
call fcn.004016c0
lea ecx, [esp + 0x14]
call fcn.004016c0
lea ecx, [esp + 0x1c]
call fcn.004016c0
lea ecx, [esp + 0x18]
call fcn.004016c0
lea ecx, [esp + 0x20]
call fcn.004016c0
mov eax, dword [edi + 0x208]
push ebp
push eax
lea ecx, [esp + 0x18]
push 0x507844
push ecx
mov byte [esp + 0xa8], 6
call fcn.00401c40
mov edx, dword [edi + 0x20c]
push ebp
push edx
lea eax, [esp + 0x2c]
push 0x507844
push eax
call fcn.00401c40
mov eax, dword [esi + 0x14]
mov ecx, dword [edi + 0x208]
push eax
push ebp
push ecx
lea edx, [esp + 0x48]
push str._s_s._08x.nm_
push edx
call fcn.00401c40
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [edi + 0x20c]
push ebp
push eax
lea ecx, [esp + 0x58]
push str._s_s._08x.nm_
push ecx
call fcn.00401c40
mov eax, dword [esi + 0x14]
mov edx, dword [edi + 0x20c]
add esp, 0x48
push eax
push ebp
push edx
lea eax, [esp + 0x2c]
push str._s_s._08x.nm
push eax
call fcn.00401c40
mov ecx, dword [edi + 0x1fc]
mov eax, dword [ecx + 4]
mov edx, dword [edi + 0x1f8]
mov ebp, dword [edx + 4]
add esp, 0x14
push eax
mov ecx, ebx
call fcn.00486150
push edx
push eax
call fcn.004c4610
add esp, 0xc
push ebp
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00486150
push edx
push eax
call fcn.004c4610
xor ebp, ebp
mov dword [esp + 0x38], eax
mov byte [esp + 0x7c], 0
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0xac], 7
call fcn.004c5d60
add esp, 0x14
mov ecx, ebx
call fcn.00486150
lea ecx, [esp + 0x70]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.00486150
cmp eax, dword [esp + 0x34]
jne 0x4bf0a2
cmp edx, dword [esp + 0x38]
jne 0x4bf0a2
mov eax, dword [ebx + 0x10]
cmp dword [esp + 0x80], eax
jne 0x4bf0a2
mov eax, dword [ebx + 0xc]
cmp dword [esp + 0x7c], eax
jne 0x4bf0a2
push 0xa
lea ecx, [esp + 0x58]
call fcn.00481950
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0x98], 8
jbe 0x4becdf
jmp 0x4bec90
cmp ebp, dword [esp + 0x2c]
jae 0x4becdf
mov eax, dword [ebx + 0x1c]
mov ecx, dword [edi + 0x1fc]
add eax, ebp
push eax
add ecx, 0x10
call fcn.0041f4f0
mov ecx, dword [edi + 0x1f8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
add eax, ebp
push eax
add ecx, 0x10
call fcn.0041f4f0
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4becd6
push ebp
lea ecx, [esp + 0x58]
call fcn.004bca10
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jb 0x4bec90
mov ecx, ebx
call fcn.00486150
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x38], edx
call fcn.00486150
cmp ebp, eax
jne 0x4bedd7
cmp dword [esp + 0x38], edx
jne 0x4bedd7
mov eax, dword [ebx + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4bedd7
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x60], eax
jne 0x4bedd7
mov ebp, dword [esp + 0x2c]
cmp eax, ebp
jne 0x4beddb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push 0
call fcn.004c5e40
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403820
add esp, 0x18
test al, al
je 0x4bed6c
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.004c5e40
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 7
call fcn.00481830
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4bed8e
push eax
call fcn.004e50f9
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004016e0
lea ecx, [esp + 0x18]
call fcn.004016e0
lea ecx, [esp + 0x1c]
call fcn.004016e0
lea ecx, [esp + 0x14]
call fcn.004016e0
lea ecx, [esp + 0x10]
call fcn.004016e0
lea ecx, [esp + 0x24]
call fcn.004016e0
lea ecx, [esp + 0x28]
call fcn.004016e0
mov eax, 1
jmp 0x4bf087
mov ebp, dword [esp + 0x2c]
cmp ebp, 0x80
jae 0x4bee25
mov ecx, ebx
call fcn.00486150
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x38], edx
call fcn.00486150
cmp eax, ebp
jne 0x4bf024
cmp edx, dword [esp + 0x38]
jne 0x4bf024
mov eax, dword [esi + 0x10]
cmp eax, dword [ebx + 0x10]
jne 0x4bf024
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x4bf024
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.00479ef0
mov eax, dword [edi + 0x334]
test eax, eax
mov byte [esp + 0x98], 9
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
je 0x4bee8a
push 1
push ecx
push edx
call fcn.0047bc30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4bf013
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00403820
add esp, 8
test al, al
je 0x4beec8
push 1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0047bc30
add esp, 0xc
jmp 0x4beec6
push ecx
push edx
call fcn.0047bd20
mov edi, eax
add esp, 8
test edi, edi
je 0x4bf013
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00403820
add esp, 8
test al, al
je 0x4beec8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0047bd20
add esp, 8
mov edi, eax
test edi, edi
je 0x4bf013
lea ecx, [esp + 0x34]
call fcn.00479ef0
mov ecx, ebx
mov byte [esp + 0x98], 0xa
call fcn.00486150
mov ecx, esi
mov edi, eax
mov ebx, edx
call fcn.00486150
cmp eax, edi
jne 0x4beefb
cmp edx, ebx
je 0x4bef73
mov ecx, dword [esp + 0x1c]
push 0
push 2
push ecx
lea ecx, [esp + 0x40]
call fcn.0047b560
test eax, eax
je 0x4bef2c
mov ecx, esi
call fcn.00486150
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.004ea2cc
lea ecx, [esp + 0x34]
call fcn.004ea3a4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00403820
add esp, 8
test al, al
je 0x4bef73
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
lea ecx, [esp + 0x40]
call fcn.0047b560
test eax, eax
je 0x4bef73
mov ecx, esi
call fcn.00486150
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.004ea2cc
lea ecx, [esp + 0x34]
call fcn.004ea3a4
mov edx, dword [esp + 0x20]
push 0
push 0x1002
push edx
lea ecx, [esp + 0x40]
call fcn.0047b560
test eax, eax
je 0x4bf002
push ebp
call fcn.004e50fe
mov esi, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
push ebp
lea ecx, [esp + 0x3c]
call fcn.004ea2cc
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
lea ecx, [esp + 0x40]
call dword [eax + 0x28]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4befe5
lea ecx, [esp + 0x54]
call fcn.004bc410
mov byte [eax + esi], 0x31
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x4befd0
push ebp
push esi
lea ecx, [esp + 0x3c]
call fcn.004ea159
lea ecx, [esp + 0x34]
call fcn.004ea3a4
push esi
call fcn.004e50f9
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 9
call fcn.00479f10
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], 8
call fcn.00479f10
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 7
call fcn.00481830
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4bf046
push eax
call fcn.004e50f9
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004016e0
lea ecx, [esp + 0x18]
call fcn.004016e0
lea ecx, [esp + 0x1c]
call fcn.004016e0
lea ecx, [esp + 0x14]
call fcn.004016e0
lea ecx, [esp + 0x10]
call fcn.004016e0
lea ecx, [esp + 0x24]
call fcn.004016e0
lea ecx, [esp + 0x28]
call fcn.004016e0
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
mov eax, dword [esp + 0x78]
cmp eax, ebp
jmp 0x4bf03b
xor eax, eax
jmp 0x4bf088