Function at 0x4145e0
Capabilities:
Access peb ldr_data
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4774f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x74], 0
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x74], 1
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x74], 2
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x74], 3
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x74], 4
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x74], 5
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
push str.Results.stg
mov byte [esp + 0x78], 6
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x414a0a
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 1
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push str.Results.stg
lea ecx, [esp + 0x60]
mov byte [esp + 0x7c], 7
call fcn.0046cf07
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 8
call fcn.0046ce41
test eax, eax
je 0x4149d0
lea esp, [esp]
lea ecx, [esp + 0x14]
call fcn.004087d0
mov ecx, eax
call fcn.004086a0
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x414776
mov edx, dword [esi + 0xc]
test edx, edx
jge 0x414747
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402770
jmp 0x414776
push ecx
call fcn.00402360
mov dword [esp + 0x3c], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41476b
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x47e490
push ecx
call fcn.004578d3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
je 0x414803
cmp byte [eax], 0x2d
jne 0x414803
mov eax, dword [eax - 0xc]
dec eax
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 1
call fcn.00408580
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 9
call fcn.00402990
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4147e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x30]
push 0x480e60
push ebp
call fcn.004578d3
add esp, 8
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
jmp case.default.0x414828
mov ecx, dword [esp + 0x18]
cmp ecx, 1
je case.default.0x414828
mov dl, byte [esp + 0x13]
test dl, dl
jne 0x414989
lea eax, [ecx - 2]
cmp eax, 5
ja case.default.0x414828
jmp dword [eax*4 + 0x414b18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00402990
jmp case.default.0x414828
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402990
jmp case.default.0x414828
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call fcn.00402990
jmp case.default.0x414828
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.00402990
jmp case.default.0x414828
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402990
jmp case.default.0x414828
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00402990
mov ebx, dword [esp + 0x34]
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov byte [esp + 0x80], 0xa
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
push eax
mov byte [esp + 0x84], 0xb
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x58], esp
mov esi, esp
push eax
mov byte [esp + 0x88], 0xc
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x60], esp
mov esi, esp
push eax
mov byte [esp + 0x8c], 0xd
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
mov byte [esp + 0x90], 0xe
call fcn.00402360
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x70], esp
mov esi, esp
push eax
mov byte [esp + 0x94], 0xf
call fcn.00402360
add eax, 0x10
add esp, 4
lea ecx, [edi + 0xe4]
mov dword [esi], eax
mov byte [esp + 0x90], 8
call fcn.0043d360
jmp case.default.0x414828
cmp ecx, 2
jne case.default.0x414828
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x58], esp
mov esi, esp
push eax
call fcn.00402360
add eax, 0x10
add esp, 4
lea ecx, [edi + 0x274]
mov dword [esi], eax
call fcn.0044ad30
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
inc esi
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], esi
call fcn.0046ce41
test eax, eax
jne 0x414710
lea ecx, [esp + 0x58]
call fcn.0046cda6
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 7
call fcn.0046cde2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x74], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, edi
call fcn.00413b30
add ebx, 0xfffffff0
mov byte [esp + 0x74], 5
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414a30
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x74], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x74], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414abc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov dword [esp + 0x74], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414b02
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret