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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
test byte [eax + 0x50], 1
je 0x50f7f2
xor eax, eax
jmp 0x50ff36
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x44], 0
jne 0x50f7eb
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x50], eax
imul eax, dword [ebp - 0x48], 0x48
mov esi, dword [ebp - 0x50]
mov edi, dword [esi + eax + 0x1c]
mov esi, dword [edi + 0x44]
test esi, esi
jne 0x50f7eb
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x50f829
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x3c], 0
jne 0x50f7eb
cmp dword [eax + 0x10], 0
jne 0x50f7eb
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 4]
bt ecx, 8
mov dword [ebp - 0x44], ecx
jae 0x50f83c
test eax, eax
jne 0x50f7eb
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
test edx, edx
je 0x50f7eb
mov edx, dword [edi + 4]
mov ebx, edx
and dl, 1
jne 0x50f7eb
test eax, eax
je 0x50f864
mov edx, dword [ebp - 0x50]
cmp dword [edx], 1
jg 0x50f7eb
test byte [ebp + 8], 1
jne 0x50f7eb
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x30]
test edx, edx
jne 0x50f874
cmp dword [ebp + 8], 0
je 0x50f87e
cmp dword [edi + 0x30], 0
jne 0x50f7eb
test eax, eax
je 0x50f899
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x24], 0
jne 0x50f7eb
test byte [ebp - 0x44], 1
jne 0x50f7eb
bt ebx, 0xd
jb 0x50f7eb
imul eax, dword [ebp - 0x48], 0x48
mov ebx, dword [ebp - 0x50]
mov al, byte [ebx + eax + 0x2c]
test al, 0x60
je 0x50f8e4
cmp dword [ebp - 0x54], 1
jg 0x50f7eb
mov ebx, dword [ecx + 0x18]
cmp byte [ebx + 0x2b], 1
je 0x50f7eb
test byte [ebp - 0x44], 1
jne 0x50f7eb
test al, 0x10
jne 0x50f7eb
mov dword [ebp - 0x5c], 1
jmp 0x50f8eb
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x48], 0
jle 0x50f8fb
test byte [ecx + 0x2c], 0x40
jne 0x50f7eb
imul eax, dword [ebp - 0x48], 0x48
add eax, dword [ebp - 0x50]
test byte [eax + 0x31], 1
je 0x50f915
mov eax, dword [eax + 0x4c]
cmp byte [eax + 0x12], 0
je 0x50f7eb
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax + 0xfc]
mov dword [ebp - 0x54], eax
imul eax, dword [ebp - 0x48], 0x48
cmp dword [edi + 0x34], 0
mov eax, dword [ecx + eax + 0x34]
mov dword [ebp - 0x7c], eax
je 0x50fa62
mov eax, dword [ebp - 0x44]
and eax, 1
or eax, dword [ebp + 8]
or eax, dword [edi + 0x30]
jne 0x50f7eb
cmp dword [ebp - 0x5c], 0
mov eax, edi
jne 0x50f7eb
test byte [eax + 4], 9
jne 0x50f7eb
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x50f971
cmp byte [eax], 0x87
jne 0x50f7eb
mov ebx, dword [eax + 0x20]
cmp dword [ebx], 0
jle 0x50f7eb
cmp dword [eax + 0x44], 0
jne 0x50f7eb
cmp dword [ebp - 0x48], 0
jle 0x50f997
test byte [ebx + 0x2c], 0x40
jne 0x50f7eb
test ecx, ecx
je 0x50f99f
mov eax, ecx
jmp 0x50f957
test edx, edx
je 0x50f9bd
mov ecx, dword [edx]
xor eax, eax
cmp ecx, eax
jle 0x50f9bd
imul ebx, eax, 0x14
cmp word [edx + ebx + 0x18], 0
je 0x50f7eb
inc eax
jmp 0x50f9a7
xor ebx, ebx
bt dword [ebp - 0x44], 0xd
jb 0x50f7eb
mov eax, dword [edi + 0x1c]
cmp dword [eax], ebx
jle 0x50fa0f
imul ecx, ebx, 0x14
mov eax, dword [eax + ecx + 8]
mov dword [ebp - 0x58], ecx
call fcn.004d137f
mov edx, dword [edi + 0x34]
mov byte [ebp - 0x44], al
test edx, edx
je 0x50fa0c
mov eax, dword [ebp - 0x58]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x60], edx
mov eax, dword [eax + 8]
call fcn.004d137f
cmp al, byte [ebp - 0x44]
jne 0x50f7eb
mov edx, dword [ebp - 0x60]
mov edx, dword [edx + 0x34]
jmp 0x50f9e6
inc ebx
jmp 0x50f9ca
mov eax, dword [ebp - 0x50]
cmp dword [eax], 1
jle 0x50fa62
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x68], 0x1f4
jg 0x50f7eb
mov eax, dword [ebp - 0x4c]
test byte [eax + 0x52], 0x80
jne 0x50f7eb
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x28]
cdq
add eax, 1
adc edx, 0
shld edx, eax, 2
shl eax, 2
mov ecx, edx
mov edx, eax
mov eax, dword [ebp - 0x4c]
call fcn.004fabc7
mov esi, eax
test eax, eax
je 0x50fa62
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x28]
mov dword [esi], eax
imul eax, dword [ebp - 0x48], 0x48
mov ebx, dword [ebp - 0x50]
mov edx, 0x15
mov ecx, dword [ebp - 0x40]
add ebx, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0xfc], eax
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00501d3a
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xfc], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004e244d
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004e244d
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004e244d
mov dword [ebx + 0xc], 0
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x50fc01
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x50]
xor ecx, ecx
add edi, dword [ebp - 0x68]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x18], 0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x30], 0
mov edx, eax
mov dword [eax + 0x34], 0
mov dword [eax + 0x3c], 0
mov eax, dword [ebp - 0x4c]
call fcn.004fc658
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x30], edx
mov byte [eax], 0x87
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0x18], eax
test ebx, ebx
jne 0x50fb87
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
mov dword [eax + 0x34], edi
jmp 0x50fbf6
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x40]
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x58], eax
inc eax
mov dword [edi + 0x68], eax
mov dword [ebx + 0x10], eax
test esi, esi
je 0x50fbe0
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x57], 0
jne 0x50fbe0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x20]
mov edx, esi
mov dword [esp], eax
mov eax, edi
lea edi, [ebp - 0x34]
call fcn.004d41db
xor eax, eax
mov ecx, 6
mov edx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], 0x4f0e87
mov dword [ebp - 0x2c], 0x4f2f4f
call fcn.004f1336
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x34], eax
test eax, eax
je 0x50fbed
mov dword [eax + 0x38], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x38], eax
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x34]
jmp 0x50faff
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004e244d
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x57], 0
je 0x50fc2c
imul ecx, dword [ebp - 0x48], 0x48
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov dword [eax + ecx + 0x1c], esi
jmp 0x50ff31
imul eax, dword [ebp - 0x48], 0x48
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi + eax + 0x18]
test ecx, ecx
je 0x50fc6e
mov eax, dword [ecx + 0x18]
cmp eax, 1
jne 0x50fc5b
mov eax, dword [ebp - 0x40]
mov edx, fcn.004ed44f
mov eax, dword [eax + 0x78]
test eax, eax
cmove eax, dword [ebp - 0x40]
call fcn.004fb0c6
jmp 0x50fc5f
dec eax
mov dword [ecx + 0x18], eax
imul eax, dword [ebp - 0x48], 0x48
mov esi, dword [ebp - 0x50]
mov dword [esi + eax + 0x18], 0
mov eax, dword [ebp - 0x68]
or esi, 0xffffffff
add eax, 8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
imul eax, dword [ebp - 0x48], 0x48
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x74]
mov byte [ebp - 0x75], 0
mov al, byte [eax + edi + 0x2c]
mov edi, dword [ebp - 0x44]
and eax, 0x40
mov byte [ebp - 0x76], al
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax + 0x20]
mov eax, dword [ebx]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], edi
jne 0x50fcd0
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x74]
mov al, byte [eax + edi + 0x2c]
mov byte [ebp - 0x75], al
cmp dword [ebp - 0x64], 1
jle 0x50fd02
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x48]
inc eax
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call fcn.00502f7a
mov dword [ebp - 0x58], eax
test eax, eax
je 0x50fef2
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
mov dword [eax + 0x20], edi
lea eax, [ebx + 8]
mov dword [ebp - 0x70], 0
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
add ebx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
cmp dword [ebp - 0x70], edi
jge 0x50fd6e
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x48]
imul eax, eax, 0x48
mov esi, dword [ebp - 0x58]
test byte [esi + eax + 0x31], 4
je 0x50fd3b
mov edx, dword [ebx + 0x38]
mov eax, dword [ebp - 0x4c]
call fcn.004e8e4e
mov eax, 0x12
mov esi, dword [ebp - 0x6c]
lea edi, [ebx + 8]
mov dl, byte [ebp - 0x76]
mov ecx, eax
inc dword [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x6c]
add dword [ebp - 0x6c], 0x48
or byte [ebx + 0x2c], dl
add ebx, 0x48
mov eax, ecx
mov ecx, 0x12
mov esi, dword [esi + 0x2c]
rep stosd dword es:[edi], eax
jmp 0x50fd15
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x74]
mov al, byte [ecx + 0x2c]
mov dl, byte [ebp - 0x75]
or dl, byte [ebp - 0x76]
and eax, 0x40
or eax, edx
mov byte [ecx + 0x2c], al
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x50fdbd
mov edi, dword [ebp - 0x44]
test byte [edi + 6], 0x40
jne 0x50fdbd
mov ecx, dword [eax]
xor edx, edx
cmp ecx, edx
jle 0x50fdad
imul ebx, edx, 0x14
inc edx
mov word [eax + ebx + 0x18], 0
jmp 0x50fd9c
mov edi, dword [ebp - 0x44]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x5c], 1
mov ebx, dword [eax + 0x24]
mov dword [eax + 0x24], 0
jne 0x50fdde
mov ecx, 1
mov edx, esi
mov eax, ebx
call fcn.004d3afd
test ebx, ebx
je 0x50fe0c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x50fe06
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov ecx, ebx
mov edx, 0x2c
call fcn.005023bb
mov edi, dword [ebp - 0x44]
mov dword [edi + 0x24], eax
jmp 0x50fe0c
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x57], 0
jne 0x50fe52
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
mov edx, eax
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x50fe36
mov eax, dword [edx + 0x1c]
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
call fcn.0050f72e
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
and eax, 0x100
or dword [edi + 4], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x50fe7d
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x3c], 0
mov dword [ebp - 0x6c], 0
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x64]
cmp dword [ebp - 0x6c], edi
jge 0x50fed6
cmp dword [ebx + 0x10], 0
je 0x50fece
xor eax, eax
mov ecx, 6
lea edi, [ebp - 0x34]
mov edx, dword [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0x4f02e4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0x4f2f4f
mov dword [ebp - 0x1c], ebx
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
call fcn.004f1336
inc dword [ebp - 0x6c]
add ebx, 0x48
jmp 0x50fe8a
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x44], 0
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x54], eax
jne 0x50fc93
lea edx, [ebp - 0x28]
xor eax, eax
mov ecx, 4
mov edi, edx
mov edx, dword [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], 0x4fcca7
mov dword [ebp - 0x2c], 0x4f2f4f
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
call fcn.004f1336
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004ed873
mov eax, 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret