Function at 0x404dc0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47107d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x48b670]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
xor ebp, ebp
lea ecx, [ebx + 0x38]
mov dword [esp + 0x9c], ebp
call fcn.00405650
mov byte [esp + 0x9c], 1
mov dword [ebx], ebp
mov dword [ebx + 0x1b8], ebp
mov dword [ebx + 0x1bc], ebp
mov dword [ebx + 0x1c0], 0xffffffff
mov dword [ebx + 0x1c4], ebp
mov dword [ebx + 0x1c8], ebp
mov dword [ebx + 0x1cc], ebp
mov dword [ebx + 0x1d0], ebp
mov eax, dword [edi]
lea esi, [ebx + 0x58]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push 0x100
mov dword [esi + 0x1c], eax
lea eax, [ebx + 0x78]
push ebp
push eax
call fcn.00431210
add esp, 0xc
push 0x3d
lea eax, [ebx + 0x178]
push ebp
push eax
call fcn.00431210
mov ecx, dword [esp + 0xb0]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404ead
mov dword [edi], ebp
jmp 0x4051d0
test al, 0x10
je 0x404eb8
mov dword [edi], ebp
jmp 0x4051d0
lea edi, [esp + 0xa4]
call fcn.004054e0
mov eax, dword [esp + 0xa4]
cmp dword [eax - 0xc], ebp
jl 0x404efa
push str..bin
push eax
call fcn.0043013d
add esp, 8
cmp eax, ebp
je 0x404efa
sub eax, dword [esp + 0xa4]
sar eax, 1
cmp eax, 0xffffffff
je 0x404efa
mov dword [ebx + 0x1cc], 1
push 0x10
call fcn.0041143a
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x9c], 2
cmp eax, ebp
je 0x404f1d
mov ecx, eax
call fcn.0041a82f
jmp 0x404f1f
xor eax, eax
mov byte [esp + 0x9c], 1
mov ecx, dword [esp + 0xa4]
push ebp
mov dword [ebx + 0x1b8], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 0x8020
push ecx
mov ecx, eax
call edx
test eax, eax
jne 0x404f53
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
jmp 0x4051d0
mov ecx, dword [ebx + 0x1b8]
cmp dword [ebx + 0x1cc], ebp
jne 0x405113
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebp
push ebp
push ebp
call eax
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push 0x66
lea eax, [esp + 0x2c]
push eax
call edx
cmp dword [esp + 0x28], 0x57464b52
je 0x404f98
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
jmp 0x4051d0
cmp byte [esp + 0x5f], 0x48
jne 0x404fce
cmp byte [esp + 0x60], 0x49
jne 0x404fce
mov ecx, dword [esp + 0x61]
push 1
push ebp
push ebp
push ecx
call fcn.00433bd0
mov ecx, dword [esp + 0x49]
mov ebp, edx
mov edx, dword [esp + 0x4d]
mov edi, eax
xor eax, eax
add edi, edx
adc ebp, eax
xor edx, edx
add edi, ecx
adc ebp, edx
jmp 0x404fd9
mov eax, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
lea edi, [eax + ecx]
mov ecx, ebx
call fcn.00405340
mov ecx, dword [ebx + 0x1b8]
sub eax, edi
cmp eax, 0xa0
mov dword [esp + 0x20], eax
jl 0x40503a
add eax, 0xffffffe0
push 0
mov dword [ebx + 0x1d0], eax
mov dword [ebx + 0x1c8], 1
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebp
push edi
call eax
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 0x20
push esi
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
add eax, 0xffffffe0
push eax
lea eax, [ebx + 0x78]
push eax
jmp 0x405055
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffe0
call edx
mov ecx, dword [ebx + 0x1b8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 0x20
push esi
call edx
cmp dword [esp + 0x1c], 0
je 0x405078
push ebp
push edi
call fcn.00404b90
test eax, eax
jne 0x405078
mov eax, dword [esp + 0x18]
mov dword [eax], 0
jmp 0x4051d0
mov ecx, dword [esp + 0x2e]
mov ax, word [esp + 0x36]
mov edx, dword [esp + 0x32]
mov dword [ebx + 4], ecx
movzx ecx, byte [esp + 0x38]
mov byte [ebx + 0xe], cl
movzx ecx, byte [esp + 0x3b]
mov dword [ebx + 8], edx
movzx edx, byte [esp + 0x39]
mov word [ebx + 0xc], ax
mov al, byte [esp + 0x3a]
mov byte [ebx + 0x10], al
mov eax, dword [esp + 0x3d]
mov byte [ebx + 0x11], cl
mov ecx, dword [esp + 0x41]
mov byte [ebx + 0xf], dl
movzx edx, byte [esp + 0x3c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x49]
mov dword [ebx + 0x18], ecx
xor ecx, ecx
sub edi, eax
mov byte [ebx + 0x12], dl
mov edx, dword [esp + 0x45]
sbb ebp, ecx
mov ecx, ebx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], ebp
call fcn.00405340
mov ecx, 0xf
lea esi, [esp + 0x51]
lea edi, [ebx + 0x178]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x30], eax
mov eax, ebx
mov dword [ebx + 0x34], edx
movsb byte es:[edi], byte [esi]
call fcn.00405390
test eax, eax
jne 0x405122
mov edx, dword [esp + 0x18]
mov dword [edx], eax
jmp 0x4051d0
mov dword [ebx + 0x18], ebp
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov dword [ebx + 0x1c], eax
jmp 0x405124
xor ebp, ebp
mov eax, dword [ebx + 0x1c]
push eax
call fcn.00411469
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add esp, 4
push ebp
mov esi, eax
mov eax, dword [ebx + 0x18]
push ebp
push eax
call edx
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push edx
push esi
call eax
push 0x44
call fcn.0041143a
mov ecx, eax
add esp, 4
cmp ecx, ebp
je 0x40517a
mov edx, dword [ebx + 0x1c]
mov eax, esi
push edx
lea edi, [esp + 0x20]
mov esi, ecx
call fcn.00404a90
jmp 0x40517c
xor eax, eax
mov dword [ebx], eax
cmp dword [esp + 0x1c], ebp
jne 0x40518c
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
jmp 0x4051d0
cmp dword [ebx + 0x1cc], ebp
je 0x4051c6
mov eax, dword [eax + 0x18]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x17c], ebp
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebx + 0x1b8]
cmp ecx, ebp
je 0x4051c0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [ebx + 0x1b8], ebp
mov ecx, dword [esp + 0x18]
mov dword [ecx], 1
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4051fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0042fc9e
add esp, 0x8c
ret 4