Function at 0x42d4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x60fdb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x340], ebx
cmp esi, 3
je 0x42d523
cmp esi, 2
je 0x42d603
cmp esi, 1
je 0x42d603
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x42d587
cmp eax, 0xffffffff
je 0x42d53d
mov eax, dword [edi]
push eax
call fcn.0042ad00
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x42d50b
cmp esi, dword [eax + 0x10]
jge 0x42d559
push eax
call fcn.0042a830
add esp, 4
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x42d572
mov edx, dword [edi]
push edx
call fcn.0042a880
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x42d560
mov ecx, dword [edi + 0x138]
mov edx, dword [edi]
push ecx
push edx
call fcn.0042d000
add esp, 8
mov dword [edi + 4], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi]
lea eax, [ebp - 0x339]
push eax
push ecx
push ebx
push edx
call fcn.0042d180
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x42d5b6
mov eax, dword [edi]
push eax
call fcn.0042ad00
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x42d6fe
test esi, esi
jle 0x42d5df
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x6a]
neg eax
sbb eax, eax
pop edi
and eax, 0x4fff000
pop esi
add eax, 0x1000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
or ebx, 0xffffffff
cmp dword [edi + 4], ebx
je 0x42d616
mov ecx, dword [edi]
push ecx
call fcn.0042ad00
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jge 0x42d50b
cmp ebx, dword [eax + 0x10]
jge 0x42d635
push eax
call fcn.0042a830
add esp, 4
mov edx, dword [edi]
cmp dword [edx + 0x10], ebx
jge 0x42d697
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x42d68d
cmp dword [esi + 0x18], 0
je 0x42d68d
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x42d68d
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
push 0
lea edx, [esi + 0x78]
mov dword [esi + 0x10], eax
push edx
lea eax, [esi + 0x28]
push eax
push esi
call fcn.0042a460
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x42d640
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x338]
push edx
push ebx
mov ecx, edi
call fcn.0042af30
test byte [ebp - 0x230], 0x10
je 0x42d713
cmp esi, 1
je 0x42d6fe
mov ecx, dword [ebp - 0x340]
mov al, byte [ecx]
cmp al, 0x2f
je 0x42d6ce
cmp al, 0x5c
je 0x42d6ce
test al, al
je 0x42d6ee
cmp byte [ecx + 1], 0x3a
jne 0x42d6ee
push ecx
push 0
call fcn.0042b600
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
push ecx
add edi, 0x140
push edi
call fcn.0042b600
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x340]
cmp esi, 1
je 0x42d7b8
mov esi, ebx
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x42d743
lea esp, [esp]
cmp al, 0x2f
je 0x42d738
cmp al, 0x5c
jne 0x42d73b
lea ebx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x42d730
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42d750
cmp ebx, esi
jne 0x42d7d5
mov byte [ebp - 0x108], cl
push ebx
lea ecx, [ebp - 0x108]
push ecx
lea esi, [edi + 0x140]
push esi
lea edx, [ebp - 0x20c]
push 0x5b266c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0042b600
add esp, 0x1c
mov ecx, dword [ebp - 0x230]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42d834
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
sub eax, esi
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x42d804
cmp al, 0x5c
je 0x42d804
test al, al
je 0x42d764
cmp byte [ebp - 0x107], 0x3a
jne 0x42d764
push ebx
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0042b600
add esp, 0x18
jmp 0x42d795
mov eax, dword [edi + 0x138]
mov ecx, dword [edi]
push eax
push ecx
call fcn.0042d000
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x42d862
push 0x4000
call fcn.0042e0cf
add esp, 4
mov dword [edi + 0x13c], eax
mov dword [ebp - 0x340], 0
lea esp, [esp]
mov eax, dword [edi + 0x13c]
mov ecx, dword [edi]
lea edx, [ebp - 0x339]
push edx
push 0x4000
push eax
push ecx
call fcn.0042d180
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x42d8d0
test esi, esi
js 0x42d8c4
jle 0x42d8b7
mov eax, dword [edi + 0x13c]
push 0
lea edx, [ebp - 0x344]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d8dc
cmp byte [ebp - 0x339], 0
jne 0x42d8e8
test esi, esi
jne 0x42d870
mov dword [ebp - 0x340], 0x5000000
jmp 0x42d904
mov dword [ebp - 0x340], 0x1000
jmp 0x42d904
mov dword [ebp - 0x340], 0x400
jmp 0x42d904
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42d911
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
push ecx
call fcn.0042ad00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x340]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e66f
mov esp, ebp
pop ebp
ret 0x10