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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x509928
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp]
call dword [eax + 0x14]
test eax, eax
je 0x4bf40b
mov eax, dword [esp + 0x74]
xor esi, esi
cmp eax, esi
je 0x4bf40b
cmp byte [eax], 0
je 0x4bf40b
cmp dword [ebp + 0xa8], 0x10
jne 0x4bf40b
mov edx, dword [ebp + 0x1c]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esp + 0x40], eax
imul eax, edx
mov dword [esp + 0x18], ecx
mov ebx, eax
mov dword [esp + 0x1c], ecx
mov edi, 0x530984
mov dword [esp + 0x20], ecx
xor eax, eax
mov word [esp + 0x24], cx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
lea esi, [esp + 0x18]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x3c], edx
and ecx, 3
lea edx, [edx + edx*2]
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + ebx*2 + 0x3a]
push edx
mov dword [esp + 0x3c], 0x28
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 0x18
mov dword [esp + 0x1e], ecx
mov dword [esp + 0x26], 0x3a
call fcn.004fcaea
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x4bf40b
push 0
mov ecx, ebp
call fcn.004ba180
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4bf34a
push edi
call fcn.004fcb13
add esp, 4
xor eax, eax
jmp 0x4bf4cf
lea ecx, [esp + 0x28]
call fcn.004fd528
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x6c], 0
test eax, eax
push 0
je 0x4bf3cb
mov eax, dword [esp + 0x78]
push 0x2001
push eax
lea ecx, [esp + 0x34]
call fcn.004fd63a
test eax, eax
jne 0x4bf38c
mov ebp, dword [ebp + 8]
push eax
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x80]
jmp 0x4bf3f1
push 2
push 0
lea ecx, [esp + 0x30]
call fcn.004fd7dc
lea ecx, [esp + 0x18]
push 0xe
push ecx
lea ecx, [esp + 0x30]
call fcn.004fd791
lea edx, [esp + 0x38]
push 0x2c
push edx
lea ecx, [esp + 0x30]
call fcn.004fd791
mov ebx, dword [ebp + 0x18]
dec ebx
test ebx, ebx
mov dword [esp + 0x7c], ebx
jl 0x4bf4a1
jmp 0x4bf416
mov edx, dword [esp + 0x78]
push 0x1001
push edx
lea ecx, [esp + 0x34]
call fcn.004fd63a
test eax, eax
jne 0x4bf399
mov ebp, dword [ebp + 8]
push 0
push ebp
mov eax, dword [ebp]
call dword [eax + 0x80]
push edi
call fcn.004fcb13
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004fd57d
xor eax, eax
jmp 0x4bf4cf
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
imul eax, ebx
lea ecx, [eax + esi]
mov eax, dword [ebp + 0x1c]
xor esi, esi
test eax, eax
jle 0x4bf485
mov eax, edi
mov edi, ecx
mov dx, word [edi]
mov cx, word [0x56fc44]
mov ebx, edx
add edi, 2
shr bx, cl
mov ecx, dword [0x56fc50]
shl bl, cl
mov cx, word [0x56fc48]
mov byte [esp + 0x74], bl
mov ebx, edx
shr bx, cl
mov ecx, dword [0x56fc54]
shl bl, cl
mov ecx, dword [0x56fc58]
shl dl, cl
mov cl, byte [esp + 0x74]
inc eax
inc eax
mov byte [eax - 2], dl
mov byte [eax - 1], bl
mov byte [eax], cl
mov ecx, dword [ebp + 0x1c]
inc eax
inc esi
cmp esi, ecx
jl 0x4bf42c
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x28]
lea edx, [eax + eax*2]
push edx
push edi
call fcn.004fd791
dec ebx
mov dword [esp + 0x7c], ebx
jns 0x4bf412
mov ebp, dword [ebp + 8]
push 0
push ebp
mov eax, dword [ebp]
call dword [eax + 0x80]
push edi
call fcn.004fcb13
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004fd57d
mov eax, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc