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

Disassembly:
push 0xffffffffffffffff
push 0x60d2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
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 0x51e227
push esi
lea eax, [esp + 0x18]
push eax
call fcn.0051d0c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x6c], 0
call fcn.00524590
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 0x51e1d6
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
call fcn.0050d8f0
test eax, eax
je 0x51e1e4
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call fcn.0051da90
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 0
cmp eax, 0xffffffff
je 0x51e204
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e204
call fcn.0050ccc0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x64], 0xffffffff
cmp eax, 0xffffffff
je 0x51e227
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e227
call fcn.0050ccc0
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x20]
call fcn.0050f340
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 2
call fcn.0051bde0
push esi
mov byte [esp + 0x68], 3
call fcn.0051b7f0
add esp, 4
mov esi, eax
mov dword [esp + 0x74], esi
test bl, 0x10
je 0x51e2bf
push esi
mov ecx, ebp
call fcn.0051ccd0
test al, al
jne 0x51e2bf
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jne 0x51e2b3
lea edx, [esp + 0x70]
push edx
mov ecx, ebp
call fcn.0051be60
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 4
call fcn.0051de20
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e2bf
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e2bf
call fcn.0050ccc0
jmp 0x51e2bf
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.0051dd80
cmp esi, 1
jne 0x51e3b3
test bl, 4
je 0x51e3b3
cmp dword [esp + 0x20], 0
je 0x51e3b3
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp dword [eax - 8], 0
jne 0x51e2f3
mov eax, dword [0x6d983c]
mov dword [esp + 0x70], eax
jmp 0x51e307
mov dword [esp + 0x70], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x51e307
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x70]
cmp dword [eax - 8], 0
mov byte [esp + 0x64], 5
je 0x51e398
lea ecx, [esp + 0x70]
call fcn.0050d150
mov eax, dword [esp + 0x70]
cmp word [eax], 0x7e
jne 0x51e398
add eax, 2
push eax
lea ecx, [esp + 0x1c]
call fcn.004034c3
lea ecx, [esp + 0x18]
mov bl, 6
push ecx
mov byte [esp + 0x68], bl
call fcn.00529780
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004034c3
push 0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 7
call fcn.0051dd80
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.0050dc70
mov eax, dword [esp + 0x70]
lea ecx, [eax - 0xc]
mov eax, dword [ecx]
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e3b3
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e3b3
call fcn.0050ccc0
cmp dword [esp + 0x44], 0
jne 0x51e3e0
mov eax, dword [esp + 0x50]
cmp dword [eax - 8], 0
jne 0x51e3e0
cmp byte [esp + 0x58], 0
je 0x51e3e0
mov ecx, dword [esp + 0x54]
cmp dword [ecx - 8], 0
jne 0x51e3e0
cmp byte [esp + 0x59], 0
je 0x51e4a1
mov edx, dword [ebp]
cmp dword [edx - 8], 0
jne 0x51e43d
mov eax, dword [esp + 0x3c]
cmp dword [eax - 8], 0
je 0x51e43d
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x40]
call fcn.0051be60
push eax
mov ecx, ebp
mov byte [esp + 0x68], 8
call fcn.0050d6d0
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e42e
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e42e
call fcn.0050ccc0
cmp byte [ebp + 0x1c], 0
jne 0x51e43d
lea ecx, [esp + 0x3c]
call fcn.0051b850
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x30]
call fcn.0050f340
mov edi, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 9
call fcn.0050cff0
xor esi, esi
test edi, edi
jbe 0x51e47d
mov eax, dword [esp + 0x34]
push 1
lea ecx, [eax + esi*4]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0050dbf0
inc esi
cmp esi, edi
jb 0x51e464
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
call fcn.0051ccd0
test al, al
je 0x51e493
mov byte [ebp + 0x1c], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 3
call fcn.0050dbc0
lea ecx, [ebp + 4]
call fcn.0050db70
mov eax, dword [esp + 0x20]
xor esi, esi
mov ebx, eax
test eax, eax
jbe 0x51e567
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 0x51e4d9
mov ecx, dword [0x6d983c]
mov dword [esp + 0x70], ecx
jmp 0x51e4e9
mov dword [esp + 0x70], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x51e4e9
inc ecx
mov dword [eax - 0xc], ecx
mov byte [esp + 0x64], 0xa
test edi, edi
je 0x51e52f
push 0x684f04
lea ecx, [esp + 0x74]
call fcn.0050d900
test eax, eax
je 0x51e53e
push 0x684efc
lea ecx, [esp + 0x74]
call fcn.0050d900
test eax, eax
jne 0x51e52f
mov eax, dword [ebp + 8]
test eax, eax
je 0x51e6ca
push 1
dec eax
push eax
lea ecx, [ebp + 4]
call fcn.0050dc70
jmp 0x51e53e
push 1
lea edx, [esp + 0x74]
push edx
lea ecx, [ebp + 4]
call fcn.0050e0f0
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e55e
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e55e
call fcn.0050ccc0
inc esi
cmp esi, ebx
jb 0x51e4c0
test byte [esp + 0x6c], 0x40
je 0x51e602
mov ecx, dword [0x6d983c]
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.0051d0c0
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x70], 0xd
call fcn.0051b9e0
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 0x51e5c9
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e5c9
call fcn.0050ccc0
cmp byte [esp + 0x70], 0
je 0x51e5e2
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [ebp + 0x1c], 0
call fcn.0051da90
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e602
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e602
call fcn.0050ccc0
mov bl, byte [esp + 0x6c]
test bl, 0x20
je 0x51e64d
cmp dword [esp + 0x74], 3
jne 0x51e64d
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.0051d170
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 0xe
call fcn.0051da90
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e64d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e64d
call fcn.0050ccc0
test bl, 8
je 0x51e693
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0051bd30
add esp, 4
test al, al
jne 0x51e693
mov ecx, ebp
call fcn.0050da50
lea ecx, [ebp + 0x14]
call fcn.0050da50
lea ecx, [ebp + 0x18]
call fcn.0050da50
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jbe 0x51e693
mov edx, dword [ebp + 0xc]
lea ecx, [edx + esi*4]
call fcn.0050da50
inc esi
cmp esi, edi
jb 0x51e683
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.0050fcd0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0050dbc0
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.0051d0c0
mov esi, dword [eax]
mov byte [esp + 0x64], 0xb
call fcn.00517840
test eax, eax
je 0x51e6fa
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 0x51e6ff
mov eax, str.The_path__s_contains_too_many__..__
push esi
push eax
call fcn.005257f0
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 0x51e729
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e729
call fcn.0050ccc0
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x64], 3
cmp eax, 0xffffffff
je 0x51e749
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e749
call fcn.0050ccc0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.0050fcd0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0050dbc0
xor al, al
jmp 0x51e6b4