Function at 0x40d0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x44ac68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x16c], ecx
mov ecx, dword [ebp + 0x28]
push 0x4000
mov dword [ebp - 0x1c4], edx
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x178], ecx
xor esi, esi
xor ebx, ebx
call fcn.004208c6
add esp, 4
mov dword [ebp - 0x17c], eax
cmp eax, esi
jne 0x40d125
pop edi
lea eax, [esi - 0x68]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042008f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x170]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d130
sub eax, edx
dec eax
cmp eax, esi
jl 0x40d14f
mov edi, edi
mov edx, dword [ebp - 0x170]
cmp byte [edx + eax], 0x2e
je 0x40d16f
dec eax
jns 0x40d140
mov eax, dword [ebp - 0x170]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d156
mov ecx, dword [str..zip]
mov dword [eax], ecx
mov dl, byte [0x43e070]
mov byte [eax + 4], dl
lea eax, [ebp - 0x1f4]
push eax
call fcn.0041c7f0
mov edx, dword [ebp - 0x170]
lea ecx, [ebp - 0x1f4]
push ecx
neg edi
sbb edi, edi
push esi
and edi, 2
push edi
push edx
call fcn.0041dca0
add esp, 0x14
mov dword [ebp - 0x174], eax
cmp eax, esi
jne 0x40d1a7
or ebx, 0xffffffff
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
cmp dword [ebp + 0x10], esi
jle 0x40d24d
jmp 0x40d1f0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + edi*4]
push 0x43d408
push ecx
call fcn.00420b96
mov esi, eax
add esp, 8
test esi, esi
je 0x40d245
push 2
push 0
push esi
call fcn.00420d5f
lea edx, [ebp - 0x18c]
push edx
push esi
call fcn.00423867
push esi
call fcn.00420c61
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x188]
add esp, 0x18
add dword [ebp - 0x194], eax
adc dword [ebp - 0x190], ecx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x40d1f0
xor esi, esi
xor edi, edi
mov dword [ebp - 0x184], edi
cmp dword [ebp + 0x10], esi
jle 0x40d624
jmp 0x40d262
xor esi, esi
cmp ebx, esi
jne 0x40d624
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx + edi*4]
lea ecx, [ebp - 0x168]
push ecx
push eax
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d2d9
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xe]
push edx
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1bc], 0
mov ebx, dword [ebp - 0x16c]
je 0x40d307
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x1b8]
push ecx
push 0x4000
push edx
push eax
call fcn.0040d000
add esp, 0x10
mov eax, dword [ebx + edi*4]
push 0x43d408
push eax
mov dword [ebp - 0x1c0], 0
call fcn.00420b96
mov esi, eax
add esp, 8
test esi, esi
je 0x40d359
push 2
push 0
push 0
push esi
call fcn.004236a7
push esi
call fcn.0042359e
add esp, 0x14
test edx, edx
jne 0x40d346
cmp eax, 0xffffffff
jb 0x40d350
mov dword [ebp - 0x1c0], 1
push esi
call fcn.00420c61
add esp, 4
mov esi, dword [ebx + edi*4]
mov ecx, esi
mov edi, edi
mov al, byte [ecx]
cmp al, 0x5c
je 0x40d36a
cmp al, 0x2f
jne 0x40d36d
inc ecx
jmp 0x40d360
cmp dword [ebp + 0x20], 0
je 0x40d3a3
mov al, byte [ecx]
xor esi, esi
mov edx, ecx
test al, al
je 0x40d43a
cmp al, 0x5c
je 0x40d389
cmp al, 0x2f
jne 0x40d38b
mov esi, edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x40d381
test esi, esi
je 0x40d43a
lea ecx, [esi + 1]
jmp 0x40d43a
cmp dword [ebp - 0x178], 0
jne 0x40d3b8
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x178], ecx
movsx edx, byte [esi + 1]
mov edi, dword [ebp - 0x178]
inc esi
push edx
xor ebx, ebx
call fcn.0042383b
movsx ecx, byte [edi + 1]
push ecx
mov dword [ebp - 0x188], eax
call fcn.0042383b
add esp, 8
cmp eax, dword [ebp - 0x188]
jne 0x40d425
mov eax, edi
inc eax
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0x188], ecx
jmp 0x40d3fb
mov ecx, dword [ebp - 0x188]
mov al, byte [esi]
cmp al, 0x5c
je 0x40d405
cmp al, 0x2f
jne 0x40d407
mov ebx, esi
movsx edx, byte [ecx + esi + 1]
inc esi
push edx
call fcn.0042383b
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.0042383b
add esp, 8
cmp edi, eax
je 0x40d3f5
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x5c
je 0x40d431
cmp al, 0x2f
jne 0x40d425
mov edi, dword [ebp - 0x184]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x1b8]
push edx
mov edx, dword [ebp - 0x1bc]
push eax
mov eax, dword [ebp + 0x1c]
push edx
push 0
push 8
push 0xfffffffffffffff1
push 0
push eax
neg eax
sbb eax, eax
and eax, 8
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.0041fa20
mov ebx, eax
add esp, 0x44
test ebx, ebx
jne 0x40d5e0
mov ebx, dword [ebp - 0x16c]
mov edx, dword [ebx + edi*4]
push 0x43d408
push edx
call fcn.00420b96
mov esi, eax
add esp, 8
mov dword [ebp - 0x180], esi
test esi, esi
je 0x40d5fc
mov eax, dword [ebx + edi*4]
push 2
push 0
push esi
mov dword [ebp - 0x1b4], eax
call fcn.00420d5f
lea ecx, [ebp - 0x1cc]
push ecx
push esi
call fcn.00423867
xor edi, edi
push edi
push edi
push esi
call fcn.00420d5f
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1c8]
add esp, 0x20
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x17c]
push esi
push 0x4000
push 1
push ecx
xor ebx, ebx
call fcn.00421025
mov esi, eax
add esp, 0x10
cmp esi, 0x4000
jge 0x40d53c
mov edx, dword [ebp - 0x180]
push edx
call fcn.00421531
add esp, 4
test eax, eax
jne 0x40d53c
or ebx, 0xffffffff
test esi, esi
jle 0x40d5c2
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x174]
push esi
push eax
push ecx
call fcn.0041e1d0
mov ebx, eax
mov eax, esi
cdq
add esp, 0xc
add dword [ebp - 0x1ac], eax
adc dword [ebp - 0x1a8], edx
add dword [ebp - 0x19c], eax
mov eax, 0xcccccccd
adc dword [ebp - 0x198], edx
mul edi
shr edx, 2
mov eax, edi
lea edx, [edx + edx*4]
inc edi
sub eax, edx
je 0x40d5a8
mov ecx, dword [ebp - 0x1ac]
cmp ecx, dword [ebp - 0x1a4]
jne 0x40d5c2
mov edx, dword [ebp - 0x1a8]
cmp edx, dword [ebp - 0x1a0]
jne 0x40d5c2
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x40d5c2
lea ecx, [ebp - 0x1b4]
push ecx
call eax
add esp, 4
test al, al
je 0x40d5d5
test ebx, ebx
jne 0x40d5da
test esi, esi
jle 0x40d5da
mov esi, dword [ebp - 0x180]
jmp 0x40d503
mov ebx, 0xffffff97
mov edi, dword [ebp - 0x184]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x40d5f3
push eax
call fcn.00420c61
add esp, 4
cmp ebx, 0xffffff97
je 0x40d622
test ebx, ebx
jns 0x40d601
or ebx, 0xffffffff
jmp 0x40d612
mov edx, dword [ebp - 0x174]
push edx
call fcn.0041f290
add esp, 4
mov ebx, eax
inc edi
mov dword [ebp - 0x184], edi
cmp edi, dword [ebp + 0x10]
jl 0x40d260
xor esi, esi
mov eax, dword [ebp - 0x174]
push esi
push eax
call fcn.0041f2b0
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.0042088c
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042008f
mov esp, ebp
pop ebp
ret