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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov byte [esp + 0xb], bl
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x108]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0x104]
call fcn.00567337
test eax, eax
je 0x50be68
xor al, al
jmp 0x50c2a3
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x50be7f
push eax
call fcn.005678a8
jmp 0x50be61
push esi
push edi
push 2
pop edi
push 4
pop esi
push 6
pop eax
xor edx, edx
mov dword [esp + 0x4c], eax
inc edx
mov dword [esp + 0x6c], eax
push 7
pop eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], edx
xor edx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x5c], edi
mov edi, dword [ecx + 0x18]
mov ecx, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x64], esi
mov esi, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 3
mov dword [esp + 0x48], 5
mov dword [esp + 0x50], 8
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x68], 5
mov dword [esp + 0x7c], 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
test edi, edi
je 0x50c227
cmp dword [eax + ecx*4], 8
je 0x50c225
mov eax, dword [eax + ecx*4]
sub eax, 1
je 0x50c1cd
dec eax
sub eax, 1
je 0x50c0af
sub eax, 1
je 0x50c051
sub eax, 1
je 0x50c0af
sub eax, 1
je 0x50bfbb
sub eax, 1
jne 0x50bf58
cmp dword [edi], 0x12
je 0x50bf77
mov bl, 1
mov eax, dword [esp + 0x14]
inc dword [esp + 0x28]
mov edi, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], edi
push 0
pop edx
test bl, bl
je 0x50bf0d
jmp 0x50c227
cmp dword [edi + 0xc], 3
jne 0x50bf58
cmp esi, 2
jb 0x50bf56
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x50bf56
cmp dword [ecx], 0xe
jne 0x50bf56
mov ecx, dword [ecx + 0x18]
jmp 0x50bfb5
cmp dword [ecx], 0xe
jne 0x50bf56
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x50bf56
mov eax, dword [eax + 0x14]
test eax, eax
je 0x50bfb2
cmp dword [eax], 1
jne 0x50bfb2
mov eax, dword [eax + 4]
cmp dword [eax], edx
jne 0x50bf56
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x50bf93
jmp 0x50bf58
cmp dword [edi], 0xe
jne 0x50bf56
mov esi, dword [edi + 0x18]
test esi, esi
jne 0x50bfcf
mov bl, 1
mov esi, dword [esp + 0x18]
jmp 0x50bf58
mov esi, dword [esi + 0x14]
test esi, esi
je 0x50bfc7
cmp dword [esi], 4
jne 0x50bfc7
mov eax, dword [esi + 8]
push 1
shr eax, 3
push eax
call fcn.0045b3de
mov ebp, eax
xor eax, eax
mov edi, ebp
mov edx, eax
cmp dword [esi + 8], eax
jbe 0x50c012
mov eax, dword [esi + 4]
mov cl, byte [edi]
add cl, cl
or cl, byte [eax + edx]
mov eax, edx
and eax, 7
mov byte [edi], cl
cmp al, 7
jne 0x50c00c
inc edi
inc edx
cmp edx, dword [esi + 8]
jb 0x50bff6
mov eax, dword [esp + 0x1c]
add eax, 0x10c
push eax
mov eax, dword [esi + 8]
shr eax, 3
push eax
push ebp
call fcn.0056712b
push 1
push ebp
mov esi, eax
call fcn.0045b404
mov edi, dword [esp + 0x20]
test esi, esi
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jne 0x50c0b8
mov byte [esp + 0x13], 1
jmp 0x50bf5c
cmp dword [edi], 0xe
jne 0x50bf56
mov esi, dword [edi + 0x18]
test esi, esi
je 0x50bfc7
cmp dword [esi], 0xc
jne 0x50bfc7
push dword [esi + 4]
call fcn.0050bd3b
mov dword [ebp + 0x138], eax
mov dword [ebp + 0x13c], edx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50bfc7
cmp dword [eax], 0xc
jne 0x50bfc7
push dword [eax + 4]
call fcn.0050bd3b
mov dword [ebp + 0x140], eax
mov dword [ebp + 0x144], edx
jmp 0x50bfc9
cmp dword [edi], 0xe
mov eax, dword [esp + 0x14]
je 0x50c0bf
mov bl, 1
jmp 0x50bf5c
cmp dword [eax + ecx*4], 3
jne 0x50c0cd
mov edx, ebp
mov dword [esp + 0x2c], ebp
jmp 0x50c0d7
lea edx, [ebp + 0x82]
mov dword [esp + 0x2c], edx
mov ebp, dword [edi + 0x18]
test ebp, ebp
je 0x50c21c
cmp dword [ebp], 0xf
jne 0x50c1be
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x50c1be
cmp dword [ecx], 0xe
jne 0x50c1be
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x50c1be
cmp dword [ecx], 7
jne 0x50c1be
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x50c1be
mov eax, dword [ecx + 4]
push 4
pop esi
cmp dword [ecx + 8], esi
jne 0x50c1ae
cmp dword [eax], 2
jne 0x50c148
cmp dword [eax + 4], 5
jne 0x50c148
cmp dword [eax + 8], esi
jne 0x50c148
cmp dword [eax + 0xc], 0xa
jne 0x50c148
mov esi, edx
jmp 0x50c166
cmp dword [ecx + 8], esi
jne 0x50c1ae
cmp dword [eax], 2
jne 0x50c1ae
cmp dword [eax + 4], 5
jne 0x50c1ae
cmp dword [eax + 8], esi
jne 0x50c1ae
cmp dword [eax + 0xc], 3
jne 0x50c1ae
lea esi, [edx + 0x41]
test esi, esi
je 0x50c1ae
cmp dword [edi + 8], 0x40
ja 0x50c1be
cmp dword [edi], 9
je 0x50c198
cmp dword [edi], 0xa
je 0x50c198
cmp dword [edi], 0xb
jne 0x50c1be
push 0x40
push dword [edi + 4]
push esi
call fcn.00643ce1
add esp, 0xc
cmp eax, 0x40
ja 0x50c1be
mov byte [eax + esi], 0
jmp 0x50c1ae
push dword [edi + 8]
push dword [edi + 4]
push esi
call fcn.0062bfc0
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
mov ebp, dword [ebp + 0x14]
test ebp, ebp
je 0x50c1c0
mov edx, dword [esp + 0x2c]
jmp 0x50c0e2
mov bl, 1
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jmp 0x50bfc9
test esi, esi
jne 0x50bf58
cmp dword [edi], 0x12
jne 0x50bf58
cmp dword [edi + 0xc], edx
jne 0x50bf58
mov eax, dword [edi + 0x18]
test eax, eax
je 0x50bf56
cmp dword [eax], 2
jne 0x50bf56
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x50bf58
lea eax, [esp + 0x54]
mov dword [esp + 0x14], eax
jmp 0x50bf5c
mov ebp, dword [esp + 0x1c]
jmp 0x50bf5c
mov bl, 1
test bl, bl
jne 0x50c296
mov al, byte [esp + 0x13]
test al, al
je 0x50c296
mov esi, dword [esp + 0x34]
mov esi, dword [esi + 0x14]
test esi, esi
je 0x50c296
mov esi, dword [esi + 0x14]
test esi, esi
je 0x50c29f
cmp dword [esi], 4
jne 0x50c29f
mov eax, dword [esi + 8]
shr eax, 3
push 1
push eax
mov dword [ebp + 0x134], eax
call fcn.0045b3de
mov edx, eax
xor ebx, ebx
mov dword [ebp + 0x130], edx
cmp dword [esi + 8], ebx
jbe 0x50c289
mov eax, dword [esi + 4]
mov cl, byte [edx]
add cl, cl
or cl, byte [ebx + eax]
mov eax, ebx
and eax, 7
mov byte [edx], cl
cmp al, 7
jne 0x50c283
inc edx
inc ebx
cmp ebx, dword [esi + 8]
jb 0x50c26d
push dword [esp + 0x24]
call fcn.005678a8
mov al, 1
jmp 0x50c2a1
push dword [esp + 0x24]
call fcn.005678a8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret