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

Disassembly:
push 0xffffffffffffffff
push 0x60fbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, ecx
mov bl, byte [esp + 0x6c]
mov esi, dword [esp + 0x74]
test bl, 1
je 0x520097
push esi
lea eax, [esp + 0x18]
push eax
call fcn.0051ef30
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x6c], 0
call fcn.00526410
add esp, 8
mov eax, dword [esp + 0x74]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x64], 1
cmp eax, dword [ecx - 8]
jne 0x520046
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
call fcn.0050f830
test eax, eax
je 0x520054
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call fcn.0051f900
invalid
invalid
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 0
inc esp
and al, 0x64
add byte [ebx + 0xc74fff8], al
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520074
call fcn.0050ec00
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x64], 0xffffffff
cmp eax, 0xffffffff
je 0x520097
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520097
call fcn.0050ec00
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x20]
call fcn.005112d0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 2
call fcn.0051dc50
push esi
mov byte [esp + 0x68], 3
call fcn.0051d660
add esp, 4
mov esi, eax
mov dword [esp + 0x74], esi
test bl, 0x10
je 0x52012f
push esi
mov ecx, ebp
call fcn.0051eb40
test al, al
jne 0x52012f
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jne 0x520123
lea edx, [esp + 0x70]
push edx
mov ecx, ebp
call fcn.0051dcd0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 4
call fcn.0051fc90
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x52012f
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52012f
call fcn.0050ec00
jmp 0x52012f
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.0051fbf0
cmp esi, 1
jne 0x520223
test bl, 4
je 0x520223
cmp dword [esp + 0x20], 0
je 0x520223
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp dword [eax - 8], 0
jne 0x520163
mov eax, dword [0x6db93c]
mov dword [esp + 0x70], eax
jmp 0x520177
mov dword [esp + 0x70], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x520177
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x70]
cmp dword [eax - 8], 0
mov byte [esp + 0x64], 5
je 0x520208
lea ecx, [esp + 0x70]
call fcn.0050f090
mov eax, dword [esp + 0x70]
cmp word [eax], 0x7e
jne 0x520208
add eax, 2
push eax
lea ecx, [esp + 0x1c]
call fcn.004030fb
lea ecx, [esp + 0x18]
mov bl, 6
push ecx
mov byte [esp + 0x68], bl
call fcn.0052b630
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004030fb
push 0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 7
call fcn.0051fbf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], bl
call fcn.00401017
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 5
call fcn.00401017
push 1
push 0
lea ecx, [esp + 0x24]
mov byte [ebp + 0x1c], 1
call fcn.0050fbb0
mov eax, dword [esp + 0x70]
lea ecx, [eax - 0xc]
mov eax, dword [ecx]
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x520223
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520223
call fcn.0050ec00
cmp dword [esp + 0x44], 0
jne 0x520250
mov eax, dword [esp + 0x50]
cmp dword [eax - 8], 0
jne 0x520250
cmp byte [esp + 0x58], 0
je 0x520250
mov ecx, dword [esp + 0x54]
cmp dword [ecx - 8], 0
jne 0x520250
cmp byte [esp + 0x59], 0
je 0x520311
mov edx, dword [ebp]
cmp dword [edx - 8], 0
jne 0x5202ad
mov eax, dword [esp + 0x3c]
cmp dword [eax - 8], 0
je 0x5202ad
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x40]
call fcn.0051dcd0
push eax
mov ecx, ebp
mov byte [esp + 0x68], 8
call fcn.0050f610
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x52029e
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x52029e
call fcn.0050ec00
cmp byte [ebp + 0x1c], 0
jne 0x5202ad
lea ecx, [esp + 0x3c]
call fcn.0051d6c0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x30]
call fcn.005112d0
mov edi, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 9
call fcn.0050ef30
xor esi, esi
test edi, edi
jbe 0x5202ed
mov eax, dword [esp + 0x34]
push 1
lea ecx, [eax + esi*4]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0050fb30
inc esi
cmp esi, edi
jb 0x5202d4
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
call fcn.0051eb40
test al, al
je 0x520303
mov byte [ebp + 0x1c], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 3
call fcn.0050fb00
lea ecx, [ebp + 4]
call fcn.0050fab0
mov eax, dword [esp + 0x20]
xor esi, esi
mov ebx, eax
test eax, eax
jbe 0x5203d7
mov edi, dword [esp + 0x6c]
and edi, 2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
cmp dword [eax - 8], 0
jne 0x520349
mov ecx, dword [0x6db93c]
mov dword [esp + 0x70], ecx
jmp 0x520359
mov dword [esp + 0x70], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x520359
inc ecx
mov dword [eax - 0xc], ecx
mov byte [esp + 0x64], 0xa
test edi, edi
je 0x52039f
push 0x68701c
lea ecx, [esp + 0x74]
call fcn.0050f840
test eax, eax
je 0x5203ae
push 0x687014
lea ecx, [esp + 0x74]
call fcn.0050f840
test eax, eax
jne 0x52039f
mov eax, dword [ebp + 8]
test eax, eax
je 0x52053a
push 1
dec eax
push eax
lea ecx, [ebp + 4]
call fcn.0050fbb0
jmp 0x5203ae
push 1
lea edx, [esp + 0x74]
push edx
lea ecx, [ebp + 4]
call fcn.00510030
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x5203ce
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5203ce
call fcn.0050ec00
inc esi
cmp esi, ebx
jb 0x520330
test byte [esp + 0x6c], 0x40
je 0x520472
mov ecx, dword [0x6db93c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x74]
push edx
lea eax, [esp + 0x1c]
mov bl, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x6c], bl
call fcn.0051ef30
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x70], 0xd
call fcn.0051d850
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
mov byte [esp + 0x70], al
mov eax, dword [ecx]
mov byte [esp + 0x64], bl
cmp eax, 0xffffffff
je 0x520439
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520439
call fcn.0050ec00
cmp byte [esp + 0x70], 0
je 0x520452
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [ebp + 0x1c], 0
call fcn.0051f900
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x520472
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520472
call fcn.0050ec00
mov bl, byte [esp + 0x6c]
test bl, 0x20
je 0x5204bd
cmp dword [esp + 0x74], 3
jne 0x5204bd
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.0051efe0
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 0xe
call fcn.0051f900
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x5204bd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5204bd
call fcn.0050ec00
test bl, 8
je 0x520503
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0051dba0
add esp, 4
test al, al
jne 0x520503
mov ecx, ebp
call fcn.0050f990
lea ecx, [ebp + 0x14]
call fcn.0050f990
lea ecx, [ebp + 0x18]
call fcn.0050f990
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jbe 0x520503
mov edx, dword [ebp + 0xc]
lea ecx, [edx + esi*4]
call fcn.0050f990
inc esi
cmp esi, edi
jb 0x5204f3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00511c60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0050fb00
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call fcn.0051ef30
mov esi, dword [eax]
mov byte [esp + 0x64], 0xb
call fcn.00519760
test eax, eax
je 0x52056a
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.The_path__s_contains_too_many__..__
call eax
jmp 0x52056f
mov eax, str.The_path__s_contains_too_many__..__
push esi
push eax
call fcn.00527670
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
add esp, 8
mov byte [esp + 0x64], 0xa
cmp eax, 0xffffffff
je 0x520599
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x520599
call fcn.0050ec00
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x5205b9
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5205b9
call fcn.0050ec00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00511c60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0050fb00
xor al, al
jmp 0x520524