Function at 0x43f630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
je 0x43f685
cmp dword [eax], 1
je 0x43f65e
mov eax, 0x80000
jmp 0x43f959
mov esi, dword [eax + 4]
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x64c], esi
je 0x43f674
mov edi, dword [esi]
call fcn.0043e090
mov edi, dword [ebp + 0xc]
mov dword [esi + 4], 0xffffffff
mov esi, dword [esi]
cmp edi, dword [esi + 4]
jl 0x43f68f
mov eax, 0x10000
jmp 0x43f959
cmp edi, dword [esi + 0x10]
jge 0x43f699
call fcn.0043d730
mov esi, dword [ebp - 0x64c]
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x43f6fb
mov esi, dword [esi]
test esi, esi
je 0x43f6ec
cmp dword [esi + 0x18], 0
je 0x43f6ec
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x43f6ec
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.0043d310
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ecx]
mov esi, ecx
cmp dword [edx + 0x10], edi
jl 0x43f6a6
push edi
lea edx, [ebp - 0x648]
mov ecx, esi
call fcn.0043e370
mov eax, dword [ebp - 0x43c]
shr eax, 4
test al, 1
movzx eax, word [ebx]
je 0x43f758
cmp eax, 0x2f
je 0x43f72f
cmp eax, 0x5c
je 0x43f72f
test ax, ax
je 0x43f741
cmp word [ebx + 2], 0x3a
jne 0x43f741
push ebx
push 0
call fcn.0043eb00
add esp, 8
xor eax, eax
jmp 0x43f959
push ebx
add esi, 0x244
push esi
call fcn.0043eb00
add esp, 8
xor eax, eax
jmp 0x43f959
xor ecx, ecx
mov word [ebp - 0x418], cx
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x43f78b
lea ebx, [ebx]
cmp ax, 0x2f
je 0x43f77c
cmp ax, 0x5c
jne 0x43f77f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x43f770
push 0x104
lea edx, [ebp - 0x210]
push ebx
push edx
call fcn.004be66b
add esp, 0xc
cmp esi, ebx
jne 0x43f814
xor eax, eax
mov word [ebp - 0x210], ax
mov edi, dword [ebp - 0x64c]
push esi
lea edx, [ebp - 0x210]
push edx
lea ebx, [edi + 0x244]
push ebx
push str._s_s_s
lea edx, [ebp - 0x418]
call fcn.0043fa70
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0043eb00
add esp, 0x18
mov ecx, dword [ebp - 0x43c]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f885
mov eax, 0x200
jmp 0x43f959
mov ecx, esi
sub ecx, ebx
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x210], dx
mov ax, word [ebp - 0x210]
cmp ax, 0x2f
je 0x43f84e
cmp ax, 0x5c
je 0x43f84e
test ax, ax
je 0x43f7ad
cmp word [ebp - 0x20e], 0x3a
jne 0x43f7ad
push esi
lea eax, [ebp - 0x210]
push eax
push 0x5114fc
lea edx, [ebp - 0x418]
call fcn.0043fa70
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
call fcn.0043eb00
mov edi, dword [ebp - 0x64c]
add esp, 8
jmp 0x43f7e2
mov eax, dword [edi + 0x23c]
mov ebx, dword [edi]
push eax
call fcn.0043dbe0
mov ebx, dword [ebp - 0x64c]
add esp, 4
cmp dword [ebx + 0x240], 0
jne 0x43f8b8
push 0x4000
call fcn.00475003
add esp, 4
mov dword [ebx + 0x240], eax
mov dword [ebp - 0x64c], 0
mov edx, dword [ebx + 0x240]
mov eax, dword [ebx]
lea ecx, [ebp - 0x64d]
push ecx
push edx
mov ecx, 0x4000
call fcn.0043dd50
mov edi, eax
add esp, 8
cmp edi, 0xffffff96
je 0x43f96f
test edi, edi
js 0x43f919
jle 0x43f90c
mov ecx, dword [ebx + 0x240]
push 0
lea eax, [ebp - 0x654]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f97b
cmp byte [ebp - 0x64d], 0
jne 0x43f923
test edi, edi
jne 0x43f8c2
mov dword [ebp - 0x64c], 0x5000000
mov edi, dword [ebx]
call fcn.0043e090
mov edi, dword [ebp - 0x64c]
test edi, edi
jne 0x43f950
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x430]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x54fe74], eax
pop ebx
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64c], 0x1000
jmp 0x43f923
mov dword [ebp - 0x64c], 0x400
jmp 0x43f923