Function at 0x401090
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8ec]
sub esp, 0x96c
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x8e8], eax
mov ecx, dword [ebp + 0x900]
mov eax, dword [ebp + 0x8f4]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x28], ecx
push 0x100
lea ecx, [ebp + 0x7e8]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
call fcn.0040229e
mov esi, eax
add esp, 0x20
cmp esi, ebx
mov dword [ebp - 0x24], esi
je 0x4010fe
push esi
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call fcn.0040581d
pop ecx
mov eax, esi
jmp 0x40131a
push 0x2000
call fcn.00405362
cmp eax, ebx
pop ecx
mov dword [ebp - 0x30], eax
jne 0x401123
push str.Error_allocating_memory_n
call fcn.0040581d
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40131b
lea edi, [ebp + 0x7e8]
mov eax, edi
push eax
lea eax, [ebp + 0x1e8]
push eax
mov dword [ebp - 0x20], edi
mov esi, edi
call fcn.00401000
mov al, byte [ebp + 0x7e8]
pop ecx
pop ecx
jmp 0x40115a
cmp al, 0x2f
je 0x40114f
cmp al, 0x5c
jne 0x401157
lea eax, [esi + 1]
mov dword [ebp - 0x20], eax
mov edi, eax
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x401147
lea eax, [ebp + 0x3e8]
push edi
push eax
call fcn.00401000
cmp byte [edi], bl
pop ecx
pop ecx
jne 0x401192
mov eax, dword [ebp + 0x8f8]
cmp dword [eax], ebx
jne 0x40130f
push ebx
lea eax, [ebp + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40130f
mov esi, dword [ebp + 0x8f8]
cmp dword [esi], ebx
lea eax, [ebp + 0x1e8]
je 0x4011a8
lea eax, [ebp + 0x3e8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp + 0x5e8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 0x2c]
call fcn.00402870
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
jne 0x40128e
mov edi, 0x41524c
push edi
lea eax, [ebp + 0x5e8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004057cd
add esp, 0xc
test eax, eax
jne 0x40128e
cmp dword [ebp - 0x1c], ebx
jne 0x401293
cmp dword [esi], ebx
jne 0x4012f9
lea eax, [ebp + 0x7e8]
cmp dword [ebp - 0x20], eax
je 0x4012f9
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + 0x3e8]
push eax
call esi
or dword [ebp - 0x20], 0xffffffff
sub dword [ebp - 0x20], eax
lea eax, [ebp + 0x5e8]
push eax
call esi
add eax, dword [ebp - 0x20]
push eax
lea eax, [ebp + 0x5e8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp + 0x5e8]
push eax
call esi
lea ecx, [ebp + 0x3e8]
push ecx
mov dword [ebp - 0x28], eax
call esi
mov ecx, dword [ebp - 0x28]
sub ecx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
mov word [ebp + ecx*2 - 0x1a], bx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp + 0x5e8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004057cd
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x4012f4
push 0x2000
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00402517
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x24], eax
jle 0x4012c7
push dword [ebp - 0x1c]
push 1
push eax
push dword [ebp - 0x30]
call fcn.00405672
add esp, 0x10
cmp eax, 1
je 0x401293
or dword [ebp - 0x24], 0xffffffff
push dword [ebp - 0x1c]
call fcn.00405497
cmp dword [ebp - 0x24], ebx
pop ecx
jne 0x401306
sub esp, 0x18
push 6
pop ecx
mov edi, esp
push dword [ebp - 0x70]
lea eax, [ebp + 0x5e8]
lea esi, [ebp - 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401021
add esp, 0x20
cmp dword [ebp - 0x24], ebx
jne 0x401306
push dword [ebp - 0x2c]
call fcn.0040268f
mov dword [ebp - 0x24], eax
jmp 0x40130e
push dword [ebp - 0x2c]
call fcn.0040268f
pop ecx
push dword [ebp - 0x30]
call fcn.00405285
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp + 0x8e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004058e2
add ebp, 0x8ec
leave
ret