Function at 0x419570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x270], eax
mov eax, dword [edi + 0xc3c]
mov dword [edi + 0xc44], 0
mov dword [edi + 0xc68], 0
mov dword [edi + 0xc58], 0
push dword [edi + 0x8ac]
mov edx, dword [edi + 0x8a8]
mov ecx, dword [edi + 0x848]
sub esp, 8
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0045fcf0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x274], esi
test esi, esi
je 0x419873
cmp esi, 0xffffffff
je 0x419873
mov dword [ebp - 0x264], 0x3ff
cmp word [ebp - 0x230], 0x2e
jne 0x419630
mov ax, word [ebp - 0x22e]
test ax, ax
je 0x4197df
cmp ax, 0x2e
jne 0x419630
cmp word [ebp - 0x22c], 0
je 0x4197df
test byte [edi + 0x6bc], 8
je 0x41964c
push str.dir_d_
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.0041ebc0
mov eax, dword [ebp - 0x25c]
test eax, 0x400
je 0x419670
test dword [ebp - 0x238], 0x20000000
jne 0x419670
and eax, 0xfffffbff
mov dword [ebp - 0x25c], eax
mov ecx, dword [edi + 0xc68]
lea ebx, [edi + 0xc50]
mov dword [ebp - 0x26c], ecx
lea eax, [ecx + 1]
cmp eax, ecx
jbe 0x4196c7
shl eax, 2
mov dword [ebp - 0x268], eax
cmp eax, dword [ebx + 4]
jbe 0x4196be
cmp eax, dword [ebx + 0xc]
ja 0x419804
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0045ed40
test eax, eax
je 0x419804
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
mov dword [ebx + 8], eax
lea eax, [ecx + 1]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x260]
mov dword [eax + ecx*4], ebx
mov eax, dword [edi + 0x6a0]
and eax, 0x4000
or eax, 0
je 0x41977e
mov eax, dword [ebp - 0x25c]
and eax, 0x410
cmp eax, 0x400
jne 0x41977e
cmp dword [ebp - 0x238], 0xa000000c
jne 0x41977e
mov eax, dword [edi + 0x848]
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x270]
lea edx, [eax + edx*2]
mov ax, word [ebp - 0x230]
test ax, ax
je 0x419749
movzx ebx, ax
nop dword [eax]
mov word [edx], bx
lea ecx, [ecx + 2]
movzx eax, word [ecx]
add edx, 2
mov ebx, eax
test ax, ax
jne 0x419730
mov ebx, dword [ebp - 0x260]
movzx eax, word [edx - 2]
lea ecx, [edx - 2]
add eax, 0x2800
cmp ax, word [ebp - 0x264]
cmova ecx, edx
xor eax, eax
lea edx, [ebp - 0x25c]
mov word [ecx], ax
push dword [edi + 0x898]
mov ecx, dword [edi + 0x848]
call fcn.004194b0
add esp, 4
push 0
push 1
push ebx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.0041a420
mov edx, dword [edi + 0xc40]
mov ebx, eax
mov eax, dword [edi + 0xc44]
lea ecx, [eax + ebx]
cmp ecx, edx
jbe 0x4197a7
int3
add eax, ebx
sub edx, eax
mov dword [edi + 0xc44], eax
cmp edx, dword [edi + 0x878]
ja 0x4197cd
push 0x40000
lea ecx, [edi + 0xc3c]
call fcn.0045ed40
test eax, eax
je 0x41980f
mov ebx, dword [edi + 0xc44]
add ebx, dword [edi + 0xc3c]
mov dword [ebp - 0x260], ebx
cmp dword [edi + 0x100c], 0
jne 0x4198f8
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL30.dll_FindNextFileW]
test eax, eax
jne 0x419602
jmp 0x41981f
push 1
push 0
push str.Cant_alloc_memory_dstStatIdxVec_
jmp 0x419818
push 1
push 0
push str.Cant_alloc_memory_dstStatBuf_
mov ecx, edi
call fcn.0041a620
cmp dword [edi + 0x100c], 0
jne 0x4198f8
call dword [sym.imp.KERNEL30.dll_GetLastError]
cmp eax, 0x12
je 0x4198f8
mov eax, dword [edi + 0xb60]
mov ecx, edi
add dword [eax + 0xe0], 1
adc dword [eax + 0xe4], 0
xor ebx, ebx
mov edx, dword [edi + 0x85c]
mov eax, dword [edi + 0x848]
push ebx
lea eax, [eax + edx*2]
push eax
push str.FindNextFile_stat_
call fcn.0041a620
jmp 0x4199e1
call dword [sym.imp.KERNEL30.dll_GetLastError]
cmp eax, 2
je 0x4198f8
mov ecx, dword [edi + 0x854]
mov edx, 0x4c17a4
mov eax, dword [edi + 0x848]
lea eax, [eax + ecx*2]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4198b8
test cx, cx
je 0x4198b4
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4198b8
add eax, 4
add edx, 4
test cx, cx
jne 0x419892
xor eax, eax
jmp 0x4198bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4198f8
mov eax, dword [edi + 0xb60]
xor ebx, ebx
push ebx
add dword [eax + 0xd8], 1
adc dword [eax + 0xdc], ebx
mov ecx, dword [edi + 0x85c]
mov eax, dword [edi + 0x848]
lea eax, [eax + ecx*2]
mov ecx, edi
push eax
push str.FindFirstFileEx_stat_
call fcn.0041a620
jmp 0x4199e1
mov ebx, dword [edi + 0xc68]
lea ecx, [edi + 0xc50]
mov eax, ebx
mov dword [ebp - 0x260], ebx
or eax, 7
mov dword [edi + 0x7bc], eax
shl eax, 2
sub eax, dword [ecx + 4]
add eax, dword [ecx + 8]
test eax, eax
jle 0x41995b
add eax, 0xffff
cdq
and edx, 0xffff
add eax, edx
and eax, 0xffff0000
push eax
call fcn.0045ed40
test eax, eax
jne 0x419955
push 1
push eax
push str.Cant_alloc_memory_dstStatIdxVec2_
mov ecx, edi
call fcn.0041a620
xor ebx, ebx
jmp 0x4199e1
lea ecx, [edi + 0xc50]
mov eax, dword [ecx]
lea ecx, [eax + ebx*4]
mov eax, dword [edi + 0x7bc]
shl eax, 2
push eax
push 0
push ecx
mov dword [edi + 0x7b8], ecx
call fcn.0048b570
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x260], ebx
jbe 0x4199dc
mov esi, dword [ebp - 0x260]
nop dword [eax + eax]
mov eax, dword [edi + 0xc50]
xor edx, edx
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x264], eax
mov eax, dword [eax + 0x50]
div dword [edi + 0x7bc]
mov eax, dword [edi + 0x7b8]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
test eax, eax
je 0x4199c9
nop dword [eax]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
test eax, eax
jne 0x4199c0
mov eax, dword [ebp - 0x264]
inc ebx
mov dword [ecx], eax
cmp ebx, esi
jb 0x419990
mov esi, dword [ebp - 0x274]
mov ebx, 1
test esi, esi
je 0x4199f1
cmp esi, 0xffffffff
je 0x4199f1
push esi
call dword [sym.imp.KERNEL30.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487555
mov esp, ebp
pop ebp
ret 4