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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x94
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 0x84], eax
mov dword [esp + 8], 0
call fcn.004e6b20
test eax, eax
je 0x50f457
mov eax, dword [esp + 0x18]
cmp eax, 0x301
jb 0x50ee72
cmp eax, 0x310
jbe 0x50eea3
mov dword [esp + 0x38], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x1c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004e6130
cmp eax, 0x1c
je 0x50eed4
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
mov dword [esp + 4], 0x1c
mov dword [esp], eax
call fcn.004f73c0
lea eax, [esp + 0x2c]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.004e6d10
xor ecx, ecx
mov cl, byte [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
call fcn.0050e50c
mov dword [esp + 0x88], eax
test eax, eax
je 0x50f457
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x3c], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
test eax, eax
jle 0x50f04d
xor edi, edi
xor esi, esi
mov ebx, dword [esp + 0x88]
nop
mov eax, dword [ebx + 0x24]
mov edx, eax
mov eax, dword [ebx + 0x48]
lea ebp, [edx*4 + 4]
mov edx, ebp
shl edx, 3
mov ecx, ebp
mov ebp, edx
sub ebp, ecx
test eax, eax
je 0x50f79f
mov dword [esp + 4], ebp
mov edx, dword [0x606064]
mov dword [esp], eax
call dword [edx + 0x138]
test eax, eax
je 0x50f772
mov ebp, dword [ebx + 0x24]
mov dword [ebx + 0x48], eax
mov edx, ebp
shl edx, 5
shl ebp, 2
sub edx, ebp
mov ebp, edx
add ebp, eax
mov dword [eax + edx + 4], esi
mov dword [eax + edx + 8], esi
mov dword [eax + edx + 0xc], esi
mov dword [eax + edx + 0x10], esi
mov dword [eax + edx], ebx
mov dword [eax + edx + 0x14], edi
mov dword [eax + edx + 0x18], edi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x50f027
mov dl, byte [ebx + 2]
test dl, 0x10
je 0x50f000
lea edx, [eax + eax]
mov ecx, dword [0x606064]
lea edx, [edx*8]
lea edx, [edx + eax*8]
mov dword [esp], edx
call dword [ecx + pe_nt_image_headers32]
mov dword [ebp + 0x14], eax
mov edx, dword [ebx + 0x20]
lea ecx, [edx*8]
lea ecx, [ecx + edx*4]
add ecx, eax
mov dword [ebp + 0x18], ecx
jmp 0x50f01c
lea edx, [eax*8]
mov ecx, dword [0x606064]
lea edx, [edx + eax*4]
mov dword [esp], edx
call dword [ecx + pe_nt_image_headers32]
mov dword [ebp + 0x14], eax
mov ebp, dword [ebp + 0x14]
test ebp, ebp
je 0x50f414
mov eax, dword [ebx + 0x24]
mov edx, 1
add edx, eax
test eax, eax
mov dword [ebx + 0x24], edx
jl 0x50f3fb
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
test eax, eax
jg 0x50ef50
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x50f1d9
mov eax, dword [esp + 0x1c]
test al, 8
je 0x50f099
mov eax, dword [esp + 0x88]
mov ebp, edx
shl ebp, 2
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004e6130
cmp eax, ebp
jne 0x50f1c0
mov eax, dword [esp + 0x1c]
test al, 4
jne 0x50f102
test eax, 0x80
je 0x50f131
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov ebp, dword [eax + 0x20]
mov eax, dword [eax + 0x30]
shl ebp, 3
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004e6e30
test eax, eax
je 0x50f464
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call fcn.004e6e30
test eax, eax
je 0x50f44b
jmp 0x50f131
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x30]
shl edx, 3
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004e6e30
test eax, eax
je 0x50f47d
mov eax, dword [esp + 0x88]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x50f1d9
mov edi, ebx
shl edi, 3
mov edx, dword [esp + 0x84]
mov esi, dword [eax + 0x28]
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call fcn.004e6130
cmp eax, edi
je 0x50f17f
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004f73c0
test ebx, ebx
je 0x50f1d9
mov eax, ebx
mov ebx, esi
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, eax
shr ecx, 0x10
mov word [ebx], cx
mov ecx, edx
shr ecx, 0x10
mov word [ebx + 2], ax
mov word [ebx + 4], cx
mov word [ebx + 6], dx
add ebx, 8
dec ebp
jne 0x50f195
jmp 0x50f1d9
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x88]
xor edi, edi
mov eax, dword [eax + 0x24]
test eax, eax
jle 0x50f379
xor ebp, ebp
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x50]
mov esi, dword [ebx + 0x48]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, 0x18
mov dword [esp + 8], eax
call fcn.004e6130
cmp eax, 0x18
jne 0x50f75e
lea eax, [esp + 0x50]
mov edx, 0xc
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004e6d10
lea eax, [esp + 0x5c]
mov edx, 4
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004e6d10
lea eax, [esp + 0x50]
mov edx, 0x18
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004f73c0
mov eax, dword [esp + 0x50]
mov dword [ebp + esi + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ebp + esi + 8], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + esi + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [ebp + esi + 0x10], eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x50f300
mov eax, dword [esp + 0x64]
test eax, eax
je 0x50f300
mov eax, dword [ebp + esi + 0x18]
mov edx, dword [ebp + esi + 0x14]
sub eax, edx
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x8c], edi
mov edi, 0xc
idiv edi
mov edx, dword [ebx + 0x20]
mov edi, dword [esp + 0x8c]
cmp eax, edx
mov dword [esp + 0x80], edx
jne 0x50f300
mov eax, edx
mov edx, dword [esp + 0x84]
mov ecx, eax
shl ecx, 2
mov esi, dword [esp + 0x7c]
sub ecx, eax
mov dword [esp + 4], esi
shl ecx, 3
mov dword [esp], edx
mov dword [esp + 8], ecx
call fcn.004e6e30
test eax, eax
je 0x50f496
jmp 0x50f36c
test ecx, ecx
je 0x50f334
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [ebp + esi + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
lea edx, [eax*8]
lea edx, [edx + eax*4]
mov dword [esp + 8], edx
call fcn.004e6e30
test eax, eax
je 0x50f74a
mov eax, dword [esp + 0x64]
test eax, eax
je 0x50f36c
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov esi, dword [ebp + esi + 0x18]
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x20]
lea edx, [eax*8]
lea edx, [edx + eax*4]
mov dword [esp + 8], edx
call fcn.004e6e30
test eax, eax
je 0x50f736
inc edi
add ebp, 0x1c
cmp edi, dword [ebx + 0x24]
jl 0x50f1f6
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x18]
mov dword [esp + 4], 8
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
call fcn.004e6b20
test eax, eax
je 0x50f457
mov eax, dword [esp + 0x18]
cmp eax, 0x301
jb 0x50f3be
cmp eax, 0x310
jbe 0x50f4aa
mov eax, dword [esp + 0x88]
call fcn.0050eb54
mov dword [esp + 0x68], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x48], 2
mov ebx, dword [ebx + 0x20]
mov dword [esp], 0x80000013
lea eax, [ebx*8]
lea eax, [eax + ebx*4]
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.004f73d0
jmp 0x50f3fb
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea edx, [esp + 0x2c]
mov dword [esp], edx
call fcn.0050fc50
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
add eax, 0x10
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512d30
test eax, eax
jne 0x50f4f0
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], 0
call fcn.0050fc50
mov eax, dword [esp + 0x88]
xor ebp, ebp
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x50f53a
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0x28]
lea edx, [ebx + 0x10]
movsx eax, word [eax + ebp*8 + 6]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512cf0
mov dword [esp], eax
call fcn.0050f8c0
inc ebp
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jl 0x50f513
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esp], 0x5d17a0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.00508310
test eax, eax
je 0x50f71d
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x50f63a
mov eax, dword [esp + 0x88]
test eax, eax
je 0x50f621
lea edx, [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005157a0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x50f5af
mov eax, dword [esp + 0x88]
add esp, 0x94
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x84]
mov dword [esp + 0x74], 2
mov eax, dword [eax]
test eax, eax
je 0x50f61a
cmp eax, 1
je 0x50f613
cmp eax, 2
je 0x50f60c
cmp eax, 3
je 0x50f605
mov eax, 0x61e080
mov edx, dword [esp + 0x84]
mov dword [esp], 0x8000001d
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call fcn.004f73c0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.004f73d0
jmp 0x50f59d
mov eax, 0x61e070
jmp 0x50f5d8
mov eax, 0x61e050
jmp 0x50f5d8
mov eax, 0x61e040
jmp 0x50f5d8
mov eax, 0x61e030
jmp 0x50f5d8
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call fcn.005125c0
mov edi, eax
test edi, edi
je 0x50f621
mov eax, dword [esp + 0x88]
xor ebp, ebp
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x50f6cd
mov ebx, dword [esp + 0x88]
lea esi, [esi]
mov esi, dword [ebx + 0x28]
movsx eax, word [esi + ebp*8 + 6]
cmp eax, 0xffffffff
jne 0x50f690
xor eax, eax
jmp 0x50f69f
lea edx, [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00512cf0
mov dword [esp + 4], eax
mov dword [esp], edi
movzx eax, word [esi + ebp*8]
mov dword [esp + 8], eax
movzx eax, word [esi + ebp*8 + 2]
mov dword [esp + 0xc], eax
movzx esi, word [esi + ebp*8 + 4]
mov dword [esp + 0x10], esi
call fcn.00512750
inc ebp
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jl 0x50f670
mov eax, dword [esp + 0x88]
mov al, byte [eax + 2]
test al, 1
je 0x50f6ed
mov dword [esp], edi
mov dword [esp + 4], 1
call fcn.00515710
jmp 0x50f6fd
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.00515710
test eax, eax
je 0x50f710
mov edx, dword [esp + 0x88]
mov dword [edx + 0x44], eax
jmp 0x50f576
mov dword [esp], edi
call fcn.005126b0
jmp 0x50f621
mov eax, dword [esp + 0x88]
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
call fcn.0050eb54
add esp, 0x94
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x40], 2
mov dword [esp], 0x80000013
mov dword [esp + 4], ebp
call fcn.004f73c0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.004f73d0
jmp 0x50f3fb
mov eax, dword [0x606064]
mov dword [esp], ebp
call dword [eax + pe_nt_image_headers32]
jmp 0x50ef85