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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
lea esp, [esp]
cmp edi, dword [ecx]
jb 0x50b89c
mov eax, edi
sub eax, dword [ecx + 4]
cmp eax, dword [ecx + 0x10]
je 0x50c33e
push dword [ecx + 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00475e50
cmp byte [ebp - 0x24], 0
mov edi, dword [ebp - 0x28]
jne 0x50c377
movzx ebx, byte [edi]
cmp ebx, 0x80
jae 0x50b8aa
inc edi
jmp 0x50b8d9
movzx ecx, byte [edi + 1]
add ebx, 0xffffff80
mov eax, ecx
shl eax, 7
add ebx, eax
cmp ecx, 0x80
jae 0x50b8c5
add edi, 2
jmp 0x50b8d9
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00476900
mov ebx, dword [ebp - 0x2c]
add esp, 0xc
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x50c372
mov eax, ebx
shr eax, 3
dec eax
cmp eax, 0x24
ja case.0x50b8f0.4
jmp dword [eax*4 + 0x50c388]
cmp bl, 9
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or esi, 0x10
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
jmp 0x50b866
cmp bl, 0x10
jne case.0x50b8f0.4
lea eax, [ebp - 0xc8]
or esi, 0x20
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xc8]
add esp, 8
mov dword [ebx + 0x38], eax
jmp 0x50c161
cmp bl, 0x18
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x40
test dl, dl
js 0x50b967
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x3c], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50b987
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x3c], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov dword [ebx + 0x3c], edx
jmp 0x50c161
cmp bl, 0x51
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or esi, 0x400000
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], ecx
jmp 0x50b866
cmp bl, 0x59
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or esi, 0x800000
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], ecx
jmp 0x50b866
cmp bl, 0x62
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or dword [ebx + 8], 1
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x50ba27
and ecx, 0xfffffffc
mov byte [ebp - 0x10], 0
push ecx
push dword [ebp - 0x10]
lea ecx, [ebx + 0x1c]
jmp 0x50c14c
mov eax, ecx
shr eax, 1
test al, 1
je 0x50ba40
xor ecx, ecx
mov byte [ebp - 0x10], cl
push ecx
push dword [ebp - 0x10]
lea ecx, [ebx + 0x1c]
jmp 0x50c14c
and ecx, 0xfffffffc
mov byte [ebp - 0x10], 0
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x10]
lea ecx, [ebx + 0x1c]
jmp 0x50c14c
cmp bl, 0x68
jne case.0x50b8f0.4
lea eax, [ebp - 0xd0]
or esi, 0x1000000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xd0]
add esp, 8
mov dword [ebx + 0x98], eax
jmp 0x50c161
cmp bl, 0x72
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or dword [ebx + 8], 2
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x50bab5
and ecx, 0xfffffffc
mov byte [ebp - 0x14], 0
push ecx
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
jmp 0x50c14c
mov eax, ecx
shr eax, 1
test al, 1
je 0x50bace
xor ecx, ecx
mov byte [ebp - 0x14], cl
push ecx
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
jmp 0x50c14c
and ecx, 0xfffffffc
mov byte [ebp - 0x14], 0
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
jmp 0x50c14c
cmp bl, 0x78
jne case.0x50b8f0.4
movzx edx, byte [edi]
test dl, dl
js 0x50bb04
mov ebx, dword [ebp - 4]
inc edi
push edx
mov ecx, ebx
call fcn.00518460
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bb29
mov ebx, dword [ebp - 4]
add edi, 2
push edx
mov ecx, ebx
call fcn.00518460
jmp 0x50c161
push edx
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00476980
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov ebx, dword [ebp - 4]
mov ecx, ebx
mov edi, dword [ebp - 0x40]
push edx
call fcn.00518460
jmp 0x50c161
cmp bl, 0x80
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x80
test dl, dl
js 0x50bb6f
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x40], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bb8f
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x40], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebx + 0x40], edx
jmp 0x50c161
cmp bl, 0x88
jne case.0x50b8f0.4
lea eax, [ebp - 0xd8]
or esi, 0x2000000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xd8]
add esp, 8
mov dword [ebx + 0x9c], eax
jmp 0x50c161
cmp bl, 0x90
jne case.0x50b8f0.4
lea eax, [ebp - 0x50]
or esi, 0x4000000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0x50]
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], ecx
jmp 0x50c161
cmp bl, 0x98
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x100
test dl, dl
js 0x50bc3d
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x44], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bc5d
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x44], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
mov dword [ebx + 0x44], edx
jmp 0x50c161
cmp bl, 0xa0
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x400
test dl, dl
js 0x50bc9e
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x50], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bcbe
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x50], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
mov dword [ebx + 0x50], edx
jmp 0x50c161
cmp bl, 0xa8
jne case.0x50b8f0.4
lea eax, [ebp - 0x68]
or esi, 0x200
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0x68]
add esp, 8
mov ecx, dword [ebp - 0x64]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], ecx
jmp 0x50c161
cmp bl, 0xb0
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x800
test dl, dl
js 0x50bd31
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x54], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bd51
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x54], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
mov dword [ebx + 0x54], edx
jmp 0x50c161
cmp bl, 0xb8
jne case.0x50b8f0.4
lea eax, [ebp - 0x78]
or esi, 0x2000
push eax
push edi
call fcn.004755b0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x50bda3
mov ebx, dword [ebp - 4]
mov al, 1
mov byte [ebx + 0x5c], al
jmp 0x50c161
mov ebx, dword [ebp - 4]
xor al, al
mov byte [ebx + 0x5c], al
jmp 0x50c161
cmp bl, 0xc0
jne case.0x50b8f0.4
lea eax, [ebp - 0xe0]
or esi, 0x1000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xe0]
add esp, 8
mov dword [ebx + 0x58], eax
jmp 0x50c161
cmp bl, 0xc8
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x8000
test dl, dl
js 0x50be04
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x60], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50be24
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x60], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x80]
mov dword [ebx + 0x60], edx
jmp 0x50c161
cmp bl, 0xd0
jne case.0x50b8f0.4
lea eax, [ebp - 0x88]
or esi, 0x4000
push eax
push edi
call fcn.004755b0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x88]
or eax, dword [ebp - 0x84]
je 0x50be7f
mov ebx, dword [ebp - 4]
mov al, 1
mov byte [ebx + 0x5d], al
jmp 0x50c161
mov ebx, dword [ebp - 4]
xor al, al
mov byte [ebx + 0x5d], al
jmp 0x50c161
cmp bl, 0xd8
jne 0x50bf1d
mov ecx, dword [ebp - 4]
add edi, 0xfffffffe
add ecx, 0x10
mov dword [ebp - 8], ecx
movzx edx, byte [edi + 2]
lea ebx, [edi + 2]
lea edi, [ebx + 1]
test dl, dl
jns 0x50bee2
movzx ecx, byte [edi]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bec5
lea edi, [ebx + 2]
jmp 0x50bee2
push edx
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00476980
mov edx, dword [ebp - 0x8c]
add esp, 0xc
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], edx
call fcn.0046eb70
mov ebx, dword [ebp - 4]
test edi, edi
je 0x50c375
mov ecx, dword [ebp + 0xc]
cmp edi, dword [ecx]
jae 0x50b874
mov ax, word [edi]
lea edx, [ebp + 8]
mov word [ebp + 8], 0x1d8
cmp ax, word [edx]
je 0x50bea1
jmp 0x50b870
cmp bl, 0xda
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
push edx
push edi
lea eax, [ebx + 0x10]
push eax
call fcn.004762c0
jmp 0x50c15c
cmp bl, 0xe0
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x10000
test dl, dl
js 0x50bf5e
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebx + 0x64], edx
jmp 0x50c161
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50bf7e
mov ebx, dword [ebp - 4]
add edi, 2
mov dword [ebx + 0x64], edx
jmp 0x50c161
push edx
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.00476980
mov ebx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x98]
mov dword [ebx + 0x64], edx
jmp 0x50c161
cmp bl, 0xea
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
cmp dword [ebx + 0xac], 0x1d
lea edx, [ebx + 0xa8]
je 0x50bfd1
mov dword [ebx + 0xac], 0x1d
mov dword [edx], 0x7b9440
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x50bfeb
and ecx, 0xfffffffc
mov byte [ebp - 0x18], 0
push ecx
push dword [ebp - 0x18]
mov ecx, edx
jmp 0x50c14c
mov eax, ecx
shr eax, 1
test al, 1
je 0x50c003
xor ecx, ecx
mov byte [ebp - 0x18], cl
push ecx
push dword [ebp - 0x18]
mov ecx, edx
jmp 0x50c14c
and ecx, 0xfffffffc
mov byte [ebp - 0x18], 0
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x18]
mov ecx, edx
jmp 0x50c14c
cmp bl, 0xf8
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x40000
test dl, dl
js 0x50c030
inc edi
jmp 0x50c064
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50c047
add edi, 2
jmp 0x50c064
push edx
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00476980
mov edx, dword [ebp - 0x9c]
add esp, 0xc
mov edi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x6c], edx
test edi, edi
je 0x50c375
jmp 0x50b866
test bl, bl
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x80000
test dl, dl
js 0x50c08f
inc edi
jmp 0x50c0c3
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50c0a6
add edi, 2
jmp 0x50c0c3
push edx
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00476980
mov edx, dword [ebp - 0xa4]
add esp, 0xc
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x70], edx
test edi, edi
je 0x50c375
jmp 0x50b866
cmp bl, 8
jne case.0x50b8f0.4
lea eax, [ebp - 0xe8]
or esi, 0x200000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [ebx + 0x80], eax
test edi, edi
je 0x50c375
jmp 0x50b866
cmp bl, 0x12
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or dword [ebx + 8], 4
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x50c130
and ecx, 0xfffffffc
jmp 0x50c141
mov eax, ecx
shr eax, 1
test al, 1
je 0x50c13c
xor ecx, ecx
jmp 0x50c141
and ecx, 0xfffffffc
mov ecx, dword [ecx]
push ecx
mov byte [ebp - 0x1c], 0
lea ecx, [ebx + 0x24]
push dword [ebp - 0x1c]
call fcn.0046d140
mov edx, dword [ebp + 0xc]
push edx
push edi
push eax
call fcn.00476010
add esp, 0xc
mov edi, eax
test edi, edi
je 0x50c375
jmp 0x50b866
cmp bl, 0x18
jne case.0x50b8f0.4
movzx edx, byte [edi]
or esi, 0x20000
test dl, dl
js 0x50c187
inc edi
jmp 0x50c1bb
movzx ecx, byte [edi + 1]
add edx, 0xffffff80
mov eax, ecx
shl eax, 7
add edx, eax
test cl, cl
js 0x50c19e
add edi, 2
jmp 0x50c1bb
push edx
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.00476980
mov edx, dword [ebp - 0xac]
add esp, 0xc
mov edi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x68], edx
test edi, edi
je 0x50c375
jmp 0x50b866
cmp bl, 0x20
jne case.0x50b8f0.4
lea eax, [ebp - 0xb8]
or esi, 0x100000
push eax
push edi
call fcn.004755b0
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xb8]
add esp, 8
mov ecx, dword [ebp - 0xb4]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], ecx
test edi, edi
je 0x50c375
jmp 0x50b866
cmp bl, 0x2a
jne case.0x50b8f0.4
mov ebx, dword [ebp - 4]
or dword [ebx + 8], 8
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x50c258
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x50c238
and ecx, 0xfffffffc
jmp 0x50c249
mov eax, ecx
shr eax, 1
test al, 1
je 0x50c244
xor ecx, ecx
jmp 0x50c249
and ecx, 0xfffffffc
mov ecx, dword [ecx]
push ecx
call fcn.00515f40
add esp, 4
mov dword [ebx + 0x28], eax
mov dword [ebp - 0xc], eax
movzx eax, byte [edi]
cmp eax, 0x80
jae 0x50c265
inc edi
jmp 0x50c282
push eax
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00476790
mov edi, dword [ebp - 0xc0]
add esp, 0xc
mov eax, dword [ebp - 0xbc]
test edi, edi
je 0x50c375
mov edx, dword [ebp + 0xc]
sub eax, dword [edx + 4]
add eax, edi
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
cmovl eax, dword [ebp - 8]
add eax, dword [edx + 4]
add dword [edx + 0x44], 0xffffffff
mov dword [edx], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
js 0x50c375
mov ecx, dword [ebp - 0xc]
push edx
push edi
call fcn.0050ada0
mov edi, eax
test edi, edi
je 0x50c375
mov ecx, dword [ebp + 0xc]
inc dword [ecx + 0x44]
cmp dword [ecx + 0x3c], 0
jne 0x50c375
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
add dword [ecx + 0x10], eax
mov eax, 0
cmovs eax, dword [ecx + 0x10]
add eax, dword [ecx + 4]
mov dword [ecx], eax
jmp 0x50b870
mov eax, ebx
and al, 7
cmp al, 4
je 0x50c358
test ebx, ebx
je 0x50c358
mov ecx, dword [ebp - 4]
add ecx, 4
test byte [ecx], 1
je 0x50c31a
mov eax, dword [ecx]
and eax, 0xfffffffc
add eax, 4
jmp 0x50c31f
call fcn.004c7520
mov edx, dword [ebp + 0xc]
push edx
push edi
push eax
push 0
push ebx
call fcn.00569640
mov ebx, dword [ebp - 4]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x50c375
jmp 0x50b866
test eax, eax
jle 0x50c377
xor eax, eax
cmp dword [ecx + 8], eax
cmove edi, eax
or dword [ebx + 8], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, edi
or dword [ebx + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 4]
xor edi, edi
or dword [ebx + 8], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8