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

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x80]
mov ebx, ecx
push esi
push edi
push 7
cmp byte [ebx + 0x68], 0
pop eax
push 3
pop ecx
cmovne eax, ecx
mov dword [esp + 0x1c], eax
test ebp, eax
jne 0x50c70d
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x50c2ae
mov edx, dword [ebx + 0x3c]
test dx, dx
jne 0x50c2ae
mov dword [esp + 0x4c], edx
xor edx, edx
push edx
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x50c710
mov edx, dword [ebx + 4]
sub edx, ebp
cmp ebp, dword [ebx + 0xc]
jb 0x50c70d
cmp ebp, dword [ebx + 4]
ja 0x50c70d
cmp edx, 8
jb 0x50c70d
mov esi, dword [ebx]
add esi, ebp
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x18], eax
or eax, edi
je 0x50c705
mov ecx, dword [esp + 0x1c]
xor eax, eax
and ecx, dword [esp + 0x18]
and eax, edi
or ecx, eax
jne 0x50c70d
xor eax, eax
cmp eax, edi
jb 0x50c70d
mov ecx, dword [esp + 0x18]
ja 0x50c30f
cmp edx, ecx
jb 0x50c70d
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [ebx + 8], eax
cmp eax, dword [ebx + 4]
ja 0x50c70d
cmp byte [ebx + 0x69], 0
push 0x66
pop eax
push 0x3e
pop edx
cmovne eax, edx
xor edx, edx
mov dword [esp + 0x40], eax
cmp edi, edx
jb 0x50c70d
ja 0x50c345
cmp ecx, eax
jb 0x50c70d
mov ecx, dword [esi + 8]
or dword [esp + 0x58], 0xffffffff
or dword [esp + 0x5c], 0xffffffff
or dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x44], ecx
shr ecx, 4
and ecx, 0xffffff01
mov byte [esp + 0x69], dl
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x68], cl
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x14]
add esi, eax
mov dword [esp + 0x14], ecx
movzx eax, word [esi - 6]
movzx edx, word [esi - 4]
mov dword [esp + 0x3c], eax
movzx eax, word [esi - 2]
mov ecx, eax
mov dword [esp + 0x24], edx
or ecx, edx
mov dword [esp + 0x28], eax
test cl, 1
jne 0x50c70d
test eax, eax
lea ecx, [eax + 2]
cmove ecx, eax
mov eax, dword [esp + 0x1c]
not eax
test edx, edx
mov dword [esp + 0x34], eax
lea eax, [edx + 2]
cmove eax, edx
xor edx, edx
add eax, ecx
add eax, dword [esp + 0x40]
add eax, dword [esp + 0x1c]
and eax, dword [esp + 0x34]
cmp edx, edi
mov edx, dword [esp + 0x24]
ja 0x50c70d
jb 0x50c3e7
cmp eax, dword [esp + 0x18]
ja 0x50c70d
mov edi, dword [esp + 0x28]
xor eax, eax
cmp word [edi + esi], ax
jne 0x50c70d
test edi, edi
je 0x50c412
xor edx, edx
cmp word [eax + esi], dx
mov edx, dword [esp + 0x24]
je 0x50c70d
add eax, 2
cmp eax, edi
jb 0x50c3fb
test edx, edx
je 0x50c43b
add ecx, esi
xor eax, eax
cmp word [ecx + edx], ax
jne 0x50c70d
test edx, edx
je 0x50c43b
xor esi, esi
cmp word [eax + ecx], si
je 0x50c70d
add eax, 2
cmp eax, edx
jb 0x50c42a
mov eax, dword [esp + 0x8c]
lea esi, [esp + 0x54]
sub esp, 0x18
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x60]
dec eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x7c], eax
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x38]
call fcn.0050a984
add ebp, dword [esp + 0x18]
mov edi, eax
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], eax
cmp dword [esp + 0x3c], eax
jbe 0x50c659
mov esi, dword [ebx + 4]
mov edx, esi
sub edx, ebp
cmp ebp, dword [ebx + 0xc]
jb 0x50c70d
cmp ebp, esi
ja 0x50c70d
cmp edx, 8
jb 0x50c70d
mov edi, dword [ebx]
mov ecx, dword [esp + 0x1c]
add edi, ebp
mov dword [esp + 0x48], edi
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
and ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
and eax, dword [esp + 0x20]
or ecx, eax
jne 0x50c70d
xor eax, eax
cmp eax, dword [esp + 0x20]
jb 0x50c70d
ja 0x50c4e6
cmp edx, dword [esp + 0x18]
jb 0x50c70d
mov cl, byte [ebx + 0x69]
push 0x28
pop eax
push 0x18
test cl, cl
pop edx
cmovne eax, edx
xor edx, edx
cmp dword [esp + 0x20], edx
jb 0x50c70d
ja 0x50c50c
cmp dword [esp + 0x18], eax
jb 0x50c70d
mov eax, dword [esp + 0x18]
add dword [ebx + 8], eax
cmp dword [ebx + 8], esi
ja 0x50c70d
test cl, cl
je 0x50c524
push 0x10
jmp 0x50c532
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
jne 0x50c70d
push 0x24
pop edx
movzx ecx, word [edx + edi]
test cl, 1
jne 0x50c70d
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 2]
test ecx, ecx
cmove eax, ecx
add esi, 2
add eax, edx
add eax, esi
xor esi, esi
and eax, dword [esp + 0x34]
cmp esi, dword [esp + 0x20]
ja 0x50c70d
jb 0x50c56f
cmp eax, dword [esp + 0x18]
ja 0x50c70d
add edx, edi
xor eax, eax
cmp word [edx + ecx + 2], ax
jne 0x50c70d
test ecx, ecx
je 0x50c596
xor esi, esi
cmp word [eax + edx + 2], si
je 0x50c70d
add eax, 2
cmp eax, ecx
jb 0x50c584
mov edx, dword [ebx]
add edx, dword [esp + 0x54]
test ecx, ecx
jne 0x50c5f0
test dword [esp + 0x44], 0x400
jne 0x50c5b0
cmp byte [esp + 0x2c], cl
jne 0x50c5f0
cmp byte [ebx + 0x69], 0
jne 0x50c5e4
lea edi, [edx + 0x40]
mov ecx, edi
call fcn.00502cc0
test al, al
je 0x50c5f0
mov esi, dword [esp + 0x48]
add esi, 0x10
mov ecx, esi
call fcn.00502cc0
test al, al
jne 0x50c63e
push 0x14
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x50c63e
push 4
lea eax, [edi + 8]
push eax
lea eax, [edx + 0x10]
push eax
jmp 0x50c5da
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x6c]
or dword [esp + 0x70], 0xffffffff
sub esp, 0x18
or dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x60]
push 6
pop ecx
dec eax
mov word [esp + 0x98], 0x100
mov edi, esp
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x38]
mov byte [ebx + 0x6b], 1
call fcn.0050a984
mov eax, dword [esp + 0x38]
add ebp, dword [esp + 0x18]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x3c]
jb 0x50c482
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x8c], 0
jge 0x50c6da
cmp dword [esp + 0x30], 0
jne 0x50c6da
cmp dword [esp + 0x24], 0
jne 0x50c6da
cmp dword [esp + 0x28], 0
jne 0x50c6da
cmp byte [esp + 0x2c], 0
je 0x50c6fc
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, ebp
add edx, ebp
cmp eax, 8
jb 0x50c6da
mov eax, dword [edx]
or eax, dword [edx + 4]
mov esi, dword [esp + 0x14]
jne 0x50c6de
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x1c], 1
mov eax, ecx
or eax, esi
je 0x50c6e2
mov eax, dword [ebx + 4]
sub eax, ebp
cmp eax, 0x10
jb 0x50c6e2
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
je 0x50c6e2
xor edx, edx
lea eax, [ebp + 8]
cmp edx, esi
ja 0x50c6e2
jb 0x50c6d4
cmp eax, ecx
jae 0x50c6e2
mov ecx, eax
mov esi, edx
jmp 0x50c6e2
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x2c], 0
je 0x50c6fc
mov eax, ecx
or eax, esi
je 0x50c6fc
push edi
push ecx
mov ecx, ebx
call fcn.0050c252
test eax, eax
jne 0x50c710
inc dword [esp + 0x30]
jmp 0x50c281
add dword [ebx + 8], 8
xor eax, eax
jmp 0x50c710
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8