Function at 0x497360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00495b00
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x4973d6
mov eax, dword [ebp - 0x174]
push eax
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call fcn.004af848
add esp, 8
mov eax, dword [ebp - 0x174]
jmp 0x497665
mov dword [ebp - 0xc], 0x2000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004aabaa
add esp, 4
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x49740f
push str.Error_allocating_memory_n
call fcn.004af848
add esp, 4
mov eax, 0xffffff98
jmp 0x497665
lea edx, [ebp - 0x110]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x49745b
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x497444
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x497450
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x497424
mov eax, dword [ebp - 0x16c]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x49747c
lea edx, [ebp - 0x110]
push edx
call fcn.004971d0
add esp, 4
jmp 0x497650
mov dword [ebp - 0x17c], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x180], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496b80
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x4974b7
mov eax, dword [ebp - 0x174]
jmp 0x497665
cmp dword [ebp - 0x174], 0
jne 0x497548
push 0x503ef0
mov edx, dword [ebp - 0x180]
push edx
call fcn.004aee3f
add esp, 8
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x497548
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x497548
mov edx, dword [ebp - 0x16c]
mov al, byte [edx - 1]
mov byte [ebp - 0x181], al
mov ecx, dword [ebp - 0x16c]
mov byte [ecx - 1], 0
mov edx, dword [ebp - 0x180]
push edx
call fcn.00497200
add esp, 4
mov eax, dword [ebp - 0x16c]
mov cl, byte [ebp - 0x181]
mov byte [eax - 1], cl
push 0x503ef0
mov edx, dword [ebp - 0x180]
push edx
call fcn.004aee3f
add esp, 8
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x49762d
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00496ba0
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jge 0x49757a
jmp 0x4975bc
cmp dword [ebp - 0x174], 0
jle 0x4975b3
mov eax, dword [ebp - 0x178]
push eax
push 1
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call fcn.004aeb23
add esp, 0x10
cmp eax, 1
je 0x4975b3
mov dword [ebp - 0x174], 0xffffffff
jmp 0x4975bc
cmp dword [ebp - 0x174], 0
jg 0x497555
cmp dword [ebp - 0x178], 0
je 0x4975d4
mov eax, dword [ebp - 0x178]
push eax
call fcn.004ae6a1
add esp, 4
cmp dword [ebp - 0x174], 0
jne 0x49762d
sub esp, 0x18
mov ecx, esp
mov edx, dword [ebp - 0x128]
mov dword [ecx], edx
mov eax, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x120]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x118]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x114]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x180]
push edx
call fcn.00497150
add esp, 0x20
cmp dword [ebp - 0x174], 0
jne 0x497647
mov eax, dword [ebp + 8]
push eax
call fcn.00497070
mov dword [ebp - 0x174], eax
jmp 0x497650
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497070
mov edx, dword [ebp - 0x170]
push edx
call fcn.004aaaaa
add esp, 4
mov eax, dword [ebp - 0x174]
mov esp, ebp
pop ebp
ret