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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60c98f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
cmp dword [ebp + 0xc], edi
je 0x50fbd1
cmp dword [ebp + 0x10], edi
je 0x50fbd1
lea esi, [ebx + 0xe8]
mov dword [esp + 0x28], esi
call fcn.00507e76
lea eax, [ebx + 0x3c]
inc dword [eax]
mov dword [esp + 0x34], eax
push 0x7c
mov dword [esp + 0x138], edi
call fcn.005d9629
pop ecx
mov dword [esp + 0xc], eax
mov byte [esp + 0x134], 1
cmp eax, edi
je 0x50f8b8
push dword [ebp + 8]
lea ecx, [esp + 0x24]
call fcn.004036c4
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x138], 2
push ebx
push dword [esp + 0x14]
mov dword [esp + 0x28], 1
call fcn.0050775c
jmp 0x50f8ba
xor eax, eax
mov dword [esp + 0x134], 3
mov dword [esp + 0x18], edi
mov esi, eax
lea edi, [esp + 0x18]
call fcn.0051f3f3
mov dword [esp + 0x134], 5
test byte [esp + 0x1c], 1
je 0x50f8ef
lea ecx, [esp + 0x20]
call fcn.00403689
mov eax, dword [esp + 0x18]
and dword [esp + 0x1c], 0
mov dword [eax + 0x6c], ebx
mov esi, dword [ebx + 4]
lea edi, [esp + 0x1c]
call fcn.0051f3f3
mov byte [esp + 0x134], 6
mov esi, dword [esp + 0x18]
lea edi, [ebx + 4]
call fcn.0051f3f3
mov dword [esp + 0x14], 0x6a6728
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x134], 7
mov edi, eax
mov byte [esp + 0x20], cl
cmp eax, 3
jb 0x50f95b
cmp byte [esi], 0xef
jne 0x50f95b
cmp byte [esi + 1], 0xbb
jne 0x50f95b
cmp byte [esi + 2], 0xbf
jne 0x50f95b
add esi, 3
lea edi, [eax - 3]
jmp 0x50facf
test al, 1
jne 0x50fad4
lea eax, [esp + 0x24]
push eax
push 0xa
push esi
mov dword [esp + 0x30], 0xff
call dword [0x619040]
test eax, eax
je 0x50fad4
test byte [esp + 0x24], 0xf0
mov eax, dword [ebp + 0x10]
je 0x50fa5d
and dword [esp + 0x30], 0
shr eax, 1
push eax
lea ecx, [esp + 0x34]
call fcn.004057b0
mov byte [esp + 0x134], 8
mov eax, dword [esp + 0x30]
xor ecx, ecx
test eax, eax
je 0x50f9b7
mov edx, dword [eax - 4]
jmp 0x50f9b9
xor edx, edx
cmp ecx, edx
jge 0x50f9d6
movzx dx, byte [esi]
movzx di, byte [esi + 1]
shl dx, 8
or dx, di
mov word [eax + ecx*2], dx
inc ecx
inc esi
inc esi
jmp 0x50f9ae
test byte [esp + 0x24], 0x80
je 0x50fa01
test eax, eax
je 0x50f9e6
mov ecx, dword [eax - 4]
jmp 0x50f9e8
xor ecx, ecx
add eax, 2
dec ecx
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040472b
mov byte [esp + 0x134], 9
jmp 0x50fa1f
test eax, eax
je 0x50fa0a
mov ecx, dword [eax - 4]
jmp 0x50fa0c
xor ecx, ecx
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040472b
mov byte [esp + 0x134], 0xa
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.0042c628
push dword [eax]
lea ecx, [esp + 0x18]
call fcn.00403865
lea ecx, [esp + 0x10]
call fcn.00403689
lea ecx, [esp + 0xc]
call fcn.0040479b
lea ecx, [esp + 0x30]
mov byte [esp + 0x134], 7
call fcn.004d2fe1
jmp 0x50fac5
test byte [esp + 0x24], 8
lea ecx, [esp + 0xc]
je 0x50fa81
add eax, 0xfffffffe
shr eax, 1
push eax
add esi, 2
push esi
call fcn.0040472b
mov byte [esp + 0x134], 0xb
jmp 0x50fa92
shr eax, 1
push eax
push esi
call fcn.0040472b
mov byte [esp + 0x134], 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.0042c628
push dword [eax]
lea ecx, [esp + 0x18]
call fcn.00403865
lea ecx, [esp + 0x10]
call fcn.00403689
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 7
call fcn.0040479b
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
lea esi, [eax + 0xc]
mov byte [esp + 0x20], 1
push dword [esp + 0x18]
xor eax, eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0xcc], eax
mov byte [ebx + 0xd0], al
lea eax, [esp + 0x4c]
push eax
call fcn.00507daf
mov byte [esp + 0x134], 0xd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xdc]
push fcn.0045f68d
push 0x50fd49
push 2
push 8
lea eax, [esp + 0x48]
push eax
call fcn.005dc165
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push edi
push esi
lea edi, [esp + 0x88]
call fcn.00508024
lea eax, [esp + 0x38]
mov esi, edi
mov byte [esp + 0x134], 0xf
call fcn.00527e25
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x50fbea
mov esi, ebx
call fcn.0050f7ba
lea esi, [esp + 0x78]
call fcn.00509cd7
push fcn.0045f68d
push 2
push 8
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x144], 0xd
call fcn.005dc102
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x138], 7
call fcn.00509c7d
lea ecx, [esp + 0x14]
call fcn.00403689
mov byte [esp + 0x134], 5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x50fbbc
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x134], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x34]
dec dword [eax]
xor al, al
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x50fbfe
and dword [esi + 8], 0
call fcn.00508471
mov byte [esi + 0xc], 0
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0xd8]
push ecx
push ecx
mov ecx, dword [ebx + 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x18], esp
call dword [eax + 0x40]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
lea eax, [esp + 0x38]
call fcn.004c9e39
test al, al
je 0x50fcd9
lea eax, [esp + 0x40]
call fcn.004c9e39
test al, al
je 0x50fcd9
cmp byte [ebx + 0xd2], 0
je 0x50fc92
push ecx
push ecx
lea ebx, [esp + 0x40]
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.004c9bfd
push 0
push dword [esp + 0x34]
call fcn.005159ab
push ecx
push ecx
lea ebx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.004c9bfd
push 1
push dword [esp + 0x34]
call fcn.005159ab
jmp 0x50fcd5
mov esi, dword [esp + 0x38]
lea edi, [ebx + 0x11c]
call fcn.0051f3f3
mov eax, dword [esp + 0x3c]
lea esi, [ebx + 0x114]
mov dword [edi + 4], eax
lea ebx, [esp + 0x40]
mov eax, esi
call fcn.004c9c16
push esi
mov ecx, edi
call fcn.005054dc
pop ecx
mov ecx, dword [esp + 0x2c]
mov byte [ecx + 0x124], al
mov ecx, dword [esp + 0x28]
call fcn.00516007
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x78]
call fcn.00509cd7
push fcn.0045f68d
push 2
push 8
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x144], 0xd
call fcn.005dc102
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x138], 7
call fcn.00509c7d
lea ecx, [esp + 0x14]
call fcn.00403689
mov byte [esp + 0x134], 5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x50fd2d
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x134], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x34]
dec dword [eax]
mov al, 1
jmp 0x50fbd3