Function at 0x433c80
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b2bd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
js 0x43445f
cmp esi, dword [ebx + 0x7c]
jge 0x43445f
mov edi, dword [ebp + 0xc]
shl esi, 5
add esi, dword [ebx + 0x78]
mov dword [ebp + 8], esi
mov edi, dword [edi]
cmp byte [esi + 0x1c], 0
je 0x433d04
test edi, edi
je 0x433cee
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [esi + 0xc]
call dword [eax + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [esi + 0xc]
call dword [eax + 0x20]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
add eax, 0xfffffffc
cmp eax, 6
ja case.0x433d19.6
movzx eax, byte [eax + 0x434494]
jmp dword [eax*4 + 0x43448c]
mov ecx, dword [ebx + 0x70]
cmp dword [ecx - 0xc], 0
jne 0x433d2c
mov ecx, dword [ebx + 0x68]
add ecx, 0xfffffff0
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea eax, [esi + 0x18]
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x14]
call fcn.004275b0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43446b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x433dc2
test edx, 0xffff0000
jne 0x433da1
movzx eax, dx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404b50
jmp 0x433dce
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433db0
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
jmp 0x433dc4
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404e30
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00424660
mov byte [ebp - 4], 5
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete byte [ebp - 0xd]
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x433e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, eax
lea ecx, [ebp + 8]
lea edi, [ebx + 0xd4]
call fcn.00426ba0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
mov esi, dword [eax]
call fcn.00423fb0
push esi
push eax
push 0x104
push edi
call fcn.004357c0
add esp, 0x14
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0xe
jmp 0x434409
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp - 0x28]
call fcn.00444910
add esp, 8
test al, al
jne 0x433f92
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x433ec8
mov eax, dword [ecx]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call dword [eax]
test eax, eax
jne 0x433f92
cmp byte [0x4a89dc], 0
je 0x433f88
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x434475
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 8]
push 0x26
push str.Not_enough_disk_space_to_extract_file:
call fcn.00404870
push dword [ebp - 0x24]
lea edx, [ebp - 0x18]
lea ecx, [ebp + 0xc]
call fcn.004275b0
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
test edx, edx
je 0x433f3b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433f22
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.00404870
lea eax, [ebp + 8]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433f6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0xa
jmp 0x434409
test edi, edi
je 0x433fd0
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [esi + 0xc]
call dword [eax + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call fcn.00423f00
test al, al
mov eax, dword [ebp + 0xc]
je 0x433fc7
add eax, 8
push dword [ebp - 0x2c]
mov ecx, edi
push eax
call dword [ebp - 0x28]
cmp dword [ebp - 0x30], 0xc
jne 0x433fe5
lea eax, [ebp - 0x14]
lea ecx, [ebx + 0xa4]
push eax
call fcn.0041b690
lea eax, [ebx + 0xb0]
xor dl, dl
push eax
lea ecx, [ebp - 0x14]
call fcn.00424440
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x44], 0x48ec3c
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x11
cmp eax, 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], eax
jne 0x43416d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, eax
lea ecx, [ebp + 8]
lea edi, [ebx + 0xd4]
call fcn.00426ba0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x14]
mov esi, dword [eax]
call fcn.00423fb0
push esi
push eax
push 0x104
push edi
call fcn.004357c0
add esp, 0x14
mov byte [ebp - 4], 0x11
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43408c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x4a89dc], 0
je 0x4341ea
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43447f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 8]
push 0x17
push str.Failed_to_extract_file:
call fcn.00404870
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4340eb
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4340d2
sub edx, esi
lea ecx, [ebp + 8]
sar edx, 1
push edx
push eax
call fcn.00404870
push 7
push str._Error:
lea ecx, [ebp + 8]
call fcn.00404870
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00426ba0
add esp, 4
mov byte [ebp - 4], 0x17
mov edx, dword [eax]
test edx, edx
je 0x434139
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434120
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.00404870
lea eax, [ebp + 8]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0x16
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434165
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
jmp 0x4341d2
mov ecx, dword [esi + 0x10]
xor eax, eax
add ecx, dword [ebx + 0x58]
push 0
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push ecx
push dword [ebx + 0x88]
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4341f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, eax
lea ecx, [ebp + 8]
lea edi, [ebx + 0xd4]
call fcn.00426ba0
mov byte [ebp - 4], 0x1b
lea ecx, [ebx + 0x60]
mov esi, dword [eax]
call fcn.00423fb0
push esi
push eax
push 0x103
push edi
call fcn.004357c0
add esp, 0x14
mov byte [ebp - 4], 0x11
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4341ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 2
jmp 0x4343ec
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x24]
push 0x10000
call fcn.00426280
mov dword [ebx + 0xd0], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov esi, dword [ebp - 0x24]
shr eax, 1
and eax, 0xffffff01
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], esi
test edi, edi
je 0x43424e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x4343a3
mov ecx, dword [ebp + 0xc]
mov eax, ecx
cmp ecx, 0x10000
mov ecx, 0x10000
push 0
cmova eax, ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4342d8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4342d8
cmp byte [ebp - 0x34], 0
je 0x434293
push eax
lea ecx, [ebx + 0xc8]
push esi
call fcn.00444840
mov eax, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4342d8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4342d8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x2c], edx
test edi, edi
je 0x4342d0
mov eax, dword [edi]
mov ecx, edi
push 0
push edx
call dword [eax + 0x20]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x434236
xor edx, edx
cmp dword [ebx + 0x7c], edx
jle 0x434312
xor edi, edi
test edi, edi
js 0x43445f
cmp edx, dword [ebx + 0x7c]
jge 0x43445f
mov ecx, dword [ebx + 0x78]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + edi + 0x10]
cmp eax, dword [esi + 0x10]
mov esi, dword [ebp - 0x38]
jne 0x434309
mov byte [ecx + edi + 0x1c], 1
inc edx
add edi, 0x20
cmp edx, dword [ebx + 0x7c]
jl 0x4342e1
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
test eax, eax
je 0x434327
push eax
call edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
cmp eax, 8
je 0x434350
test eax, eax
je 0x434350
cmp eax, 1
je 0x434350
cmp eax, 0xb
je 0x434350
cmp eax, 0xd
je 0x434350
cmp eax, 0xe
je 0x434350
cmp eax, 0xf
jne 0x4343d6
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], 0x48ec3c
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebx + 0x100]
cmp ecx, dword [ebx + 0x104]
je 0x4343aa
mov dword [ecx], 0x48ec3c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ecx + 4], eax
add dword [ebx + 0x100], 8
jmp 0x4343ba
mov edi, 0xf
jmp 0x4343d8
lea edx, [ebp - 0x3c]
push edx
push ecx
lea ecx, [ebx + 0xfc]
call fcn.00435b70
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x48ec3c
test eax, eax
je 0x4343d6
push eax
call edi
mov dword [ebp - 0x38], 0
xor edi, edi
mov byte [ebp - 4], 0x11
push esi
call fcn.00452f38
add esp, 4
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0x48ec3c
test eax, eax
je 0x434409
push eax
call dword [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43442a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x434449
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc000008c
call fcn.004134e0
push 0x80004005
call fcn.00402f30
push 0x80004005
call fcn.00402f30
push 0x80004005
call fcn.00402f30
nop dword [eax]
and byte [0x3d290043], bh
inc ebx
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add byte [eax], al
int3