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

Disassembly:
push 0xffffffffffffffff
push 0x4de6e2
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53132c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x24], eax
call fcn.004bc940
lea ecx, [ebp + 4]
call fcn.004bc940
lea ecx, [ebx + 1]
cmp eax, ebx
je 0x4bf0ea
xor esi, esi
mov edx, 0x800
lea esp, [esp]
cmp eax, edx
jae 0x4bf0e2
mov edx, dword [esi*8 + 0x4f5798]
inc esi
cmp edx, ebx
jne 0x4bf0d0
jmp 0x4bf0ea
mov ecx, dword [esi*8 + 0x4f5794]
inc ecx
mov eax, dword [esp + 0x24]
test al, 1
je 0x4bf0f5
add ecx, 2
test eax, 0x400
je 0x4bf0fd
inc ecx
mov edx, 1
shl edx, cl
mov dword [ebp + 0x70], ecx
lea ecx, [ebp + 0x54]
dec edx
push edx
call fcn.004be170
mov edi, dword [ebp + 0x68]
lea edi, [edi + edi + 2]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
push 1
mov dword [esp + 0x7c], ebx
call fcn.00479b90
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp edi, eax
jbe 0x4bf16d
mov edx, dword [esi]
push eax
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx]
lea eax, [edi*4]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edi
xor eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x78], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
push 1
mov byte [esp + 0x7c], 2
call fcn.00479b90
add esp, 4
mov esi, eax
mov dword [esp + 0x34], esi
test edi, edi
je 0x4bf1c7
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [edi*4]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x80]
push 1
lea esi, [ebp + 0x18]
push esi
mov byte [esp + 0x80], 3
call fcn.004bc710
test eax, eax
js 0x4bf210
mov eax, dword [esp + 0x80]
push esi
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004ca720
add esp, 0xc
mov esi, eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x14], 1
jmp 0x4bf233
mov edx, dword [esp + 0x80]
push edx
lea ecx, [esp + 0x4c]
call fcn.004bcd30
mov esi, eax
mov dword [esp + 0x78], 5
mov dword [esp + 0x14], 2
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x80], ecx
cmp ecx, esi
je 0x4bf284
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
call fcn.0047f640
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x24]
cmp edx, eax
ja 0x4bf268
mov eax, edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx]
add eax, eax
add eax, eax
push eax
push edx
push ecx
call fcn.00459280
mov ecx, dword [esp + 0x8c]
add esp, 0xc
test byte [esp + 0x14], 2
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x78], 4
je 0x4bf2b7
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
and dword [esp + 0x14], 0xfffffffd
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x4c]
push eax
call edx
test byte [esp + 0x14], 1
mov dword [esp + 0x78], 3
je 0x4bf2df
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x60]
push edx
call eax
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
test esi, esi
je 0x4bf2fb
lea eax, [eax + esi*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x4bf2fb
sub eax, 4
dec esi
jne 0x4bf2f0
mov ecx, dword [ebp + 0x54]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
test eax, eax
je 0x4bf31b
lea edx, [edx + eax*4 - 4]
jmp 0x4bf310
cmp dword [edx], 0
jne 0x4bf31b
sub edx, 4
dec eax
jne 0x4bf310
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x2c]
push esi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edi
push ebx
call fcn.004c92f0
mov eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x3c]
mov edi, dword [ebp + 0x54]
push eax
push esi
push ecx
push edx
push ebx
call fcn.004c87d0
add esp, 0x38
lea eax, [esi + 1]
push eax
mov ecx, edi
call fcn.0047f640
mov eax, dword [edi + 4]
lea ecx, [esi + 1]
cmp ecx, eax
ja 0x4bf36c
mov eax, ecx
mov edi, dword [edi]
add eax, eax
add eax, eax
push eax
lea ecx, [ebx + esi*4]
push ecx
push edi
call fcn.00459280
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4bf3a7
lea ecx, [ecx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x4bf3a3
sub ecx, 4
dec eax
jne 0x4bf398
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x58]
sub ecx, dword [ebp + 0x54]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], 1
cmp eax, 1
je 0x4bf514
mov dword [esp + 0x80], 0x14
jmp 0x4bf3e4
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x54]
mov edx, dword [esp + 0x80]
mov esi, dword [edx + ecx - 0x10]
mov eax, dword [edx + ecx - 0x14]
lea edi, [edx + ecx - 0x14]
test esi, esi
je 0x4bf40d
lea eax, [eax + esi*4 - 4]
cmp dword [eax], 0
jne 0x4bf40d
sub eax, 4
dec esi
jne 0x4bf402
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4bf425
add eax, eax
add eax, eax
push eax
push 0
push ebx
call fcn.00458cc0
add esp, 0xc
mov eax, dword [edi + 4]
mov edi, dword [edi]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebx
call fcn.004c92f0
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x40]
mov ebp, dword [ebp + 0x68]
mov esi, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x18]
add esi, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x40]
push ebp
push ecx
push eax
push ebx
call fcn.004c87d0
mov eax, dword [esi + 8]
lea edi, [ebp + 1]
add esp, 0x38
cmp edi, eax
ja 0x4bf49e
mov ecx, dword [esi]
test eax, eax
je 0x4bf4c6
lea edx, [eax*4]
push edx
push 0
push ecx
call fcn.00458cc0
add esp, 0xc
jmp 0x4bf4c6
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esi]
push eax
call edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [edi*4]
push edx
call eax
mov dword [esi], eax
mov dword [esi + 8], edi
lea ecx, [edi*4]
push ecx
lea edx, [ebx + ebp*4]
mov dword [esi + 4], edi
mov esi, dword [esi]
push edx
push esi
call fcn.00459280
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x58]
sub ecx, dword [eax + 0x54]
mov esi, dword [esp + 0x30]
add dword [esp + 0x8c], 0x14
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 0xc
mov dword [esp + 0x24], esi
cmp esi, eax
jne 0x4bf3e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x80], 1
call edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
push ebx
mov dword [esp + 0x80], 0xffffffff
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4