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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x745e10
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0050bd70
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov edx, dword [esi]
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x50b2cf
xor ebp, ebp
jmp 0x50b2d7
mov ecx, dword [edi + 8]
mov bp, word [ecx + eax - 2]
add eax, 2
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
jle 0x50b2e7
xor eax, eax
jmp 0x50b2ef
mov edx, dword [edi + 8]
mov ax, word [edx + eax - 2]
mov ecx, dword [ebx + 0xbc]
movsx eax, ax
test ecx, ecx
mov dword [ebx + 0x154], eax
je 0x50b30c
mov edx, dword [ecx]
inc eax
push eax
call dword [edx + 0xa0]
movsx eax, bp
test eax, eax
jle 0x50b64b
lea ecx, [ebx + 0xe8]
add ebx, 0x164
mov dword [esp + 0x18], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x1c], eax
mov dl, byte [esp + 0x7c]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00404760
mov al, byte [esp + 0x7c]
mov dword [esp + 0x70], 0
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00404760
mov cl, byte [esp + 0x7c]
mov byte [esp + 0x70], 1
mov byte [esp + 0x38], cl
push 0
lea ecx, [esp + 0x3c]
call fcn.00404760
mov dl, byte [esp + 0x7c]
mov byte [esp + 0x70], 2
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], dl
call fcn.00404760
mov edx, dword [esi]
mov byte [esp + 0x70], 3
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x50b3a6
xor ecx, ecx
jmp 0x50b3ae
mov ecx, dword [edi + 8]
mov cx, word [ecx + eax - 2]
inc eax
movsx edx, cx
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x20], edx
jle 0x50b3c6
mov byte [esp + 0x78], 0
jmp 0x50b3d1
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x78], dl
mov ecx, dword [esp + 0x78]
and ecx, 0xff
inc eax
mov dword [esp + 0x24], ecx
mov dword [esi], eax
cmp eax, dword [edi + 4]
jle 0x50b3ee
mov byte [esp + 0x10], 0
jmp 0x50b3f9
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x10], dl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
inc eax
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
jle 0x50b414
mov byte [esp + 0x14], 0
jmp 0x50b41f
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x14], dl
mov ebp, dword [esp + 0x14]
add eax, 2
mov dword [esi], eax
mov ecx, dword [edi + 4]
and ebp, 0xff
cmp eax, ecx
jle 0x50b439
xor eax, eax
jmp 0x50b441
mov ecx, dword [edi + 8]
mov ax, word [ecx + eax - 2]
movsx edx, ax
lea eax, [esp + 0x28]
push edx
push eax
push esi
push edi
call fcn.0045cc90
mov edx, dword [esi]
add esp, 0x10
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x50b468
xor eax, eax
jmp 0x50b470
mov ecx, dword [edi + 8]
mov ax, word [ecx + eax - 2]
movsx eax, ax
lea edx, [esp + 0x58]
push eax
push edx
push esi
push edi
call fcn.0045cc90
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea edx, [esp + 0x58]
push ebp
push eax
push ebx
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004257d0
sub esp, 0x10
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0xa4], 4
call fcn.004257d0
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xa0], 3
add ecx, 0xfffffffc
call fcn.00509aa0
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50b4ec
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp]
test ecx, ecx
je 0x50b503
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x10
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x50b51a
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x28
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x50b574
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x3c
push eax
call dword [edx + 0x9c]
mov eax, dword [ebp + 0x28]
cmp ebx, 1
jne 0x50b554
mov dword [eax + 0xd8], 0xff80ff80
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x50b574
push 0xff80ff80
jmp 0x50b56d
mov dword [eax + 0xd8], 0xffff8080
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x50b574
push 0xffff8080
mov ecx, eax
call fcn.004380d0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 2
call fcn.00404760
mov eax, dword [esp + 0x3c]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x70], 1
je 0x50b5b0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x50b5a7
cmp al, 0xff
je 0x50b5a7
dec al
mov byte [ecx], al
jmp 0x50b5b0
push ecx
call fcn.00726ea6
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
mov byte [esp + 0x70], 0
je 0x50b5e6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x50b5dd
cmp al, 0xff
je 0x50b5dd
dec al
mov byte [ecx], al
jmp 0x50b5e6
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp ecx, ebx
mov dword [esp + 0x70], 0xffffffff
je 0x50b61e
mov al, byte [ecx - 1]
test al, al
je 0x50b614
cmp al, 0xff
je 0x50b614
dec al
mov byte [ecx - 1], al
jmp 0x50b61e
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
add ebp, 4
add ecx, 0x54
dec eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x1c], eax
jne 0x50b32f
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 8