Function at 0x438fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4654
call fcn.004b8880
mov eax, dword [0x56f710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
push esi
push edi
mov dword [ebp - 0x464c], ebx
mov dword [ebp - 0x4654], eax
je 0x438fe8
mov edi, dword [ebx]
call fcn.00438874
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [esi + 4]
jl 0x439000
mov eax, 0x10000
jmp 0x439256
cmp edi, dword [esi + 0x10]
jge 0x439013
call fcn.004382ea
jmp 0x439013
mov esi, dword [ebx]
call fcn.0043831f
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x43900c
mov esi, dword [ebp - 0x464c]
push edi
lea ebx, [ebp - 0x4648]
mov ecx, esi
call fcn.00438a58
test byte [ebp - 0x443c], 0x10
je 0x439053
lea eax, [ebp - 0x4644]
push eax
add esi, 0x240
push esi
call fcn.00438ec9
pop ecx
pop ecx
xor eax, eax
jmp 0x439256
lea eax, [esi + 0x240]
lea edx, [ebp - 0x210]
mov dword [ebp - 0x4650], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x439067
mov eax, dword [ebp - 0x4654]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43907d
sub eax, edx
lea edi, [ebp - 0x210]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x439091
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
lea eax, [ebp - 0x210]
mov ecx, eax
cmp word [ebp - 0x210], di
je 0x439196
movzx edx, word [ebp - 0x210]
cmp dx, 0x2f
je 0x4390d6
cmp dx, 0x5c
jne 0x4390d9
lea eax, [ecx + 2]
inc ecx
inc ecx
movzx edx, word [ecx]
cmp dx, di
jne 0x4390ca
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x439196
xor ecx, ecx
movzx edx, word [ebp + ecx - 0x210]
mov word [ebp + ecx - 0x418], dx
inc ecx
inc ecx
cmp dx, di
jne 0x4390f3
lea ecx, [ebp - 0x210]
sub eax, ecx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x41a], cx
cmp word [ebp - 0x418], di
je 0x439149
cmp word [ebp - 0x418], 0x2f
je 0x439149
cmp word [ebp - 0x418], 0x5c
je 0x439149
cmp word [ebp - 0x416], 0x3a
je 0x439149
xor bl, bl
jmp 0x43914b
mov bl, 1
lea eax, [ebp - 0x418]
push 0x53aa68
push eax
call fcn.004b302c
mov esi, eax
lea eax, [ebp - 0x418]
push 0x53aa70
push eax
call fcn.004b302c
add esp, 0x10
test eax, eax
setne al
cmp esi, edi
setne cl
or al, cl
or al, bl
jne 0x439196
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x4650]
call fcn.00438ec9
pop ecx
pop ecx
push edi
push dword [ebp - 0x443c]
lea eax, [ebp - 0x210]
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4391c4
mov eax, 0x200
jmp 0x439256
mov esi, dword [ebp - 0x464c]
push dword [esi + 0x23c]
mov ebx, dword [esi]
call fcn.00438533
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x4418]
push eax
mov eax, dword [esi]
mov ecx, 0x4000
call fcn.00438688
pop ecx
cmp eax, 0xffffff96
je 0x43921c
test eax, eax
jl 0x439223
je 0x43922a
push 0
lea ecx, [ebp - 0x4650]
push ecx
push eax
lea eax, [ebp - 0x4418]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4391da
mov ebx, 0x400
jmp 0x439246
mov ebx, 0x1000
jmp 0x439246
mov ebx, 0x5000000
jmp 0x439246
lea eax, [ebp - 0x4428]
push eax
lea eax, [ebp - 0x4438]
push eax
lea eax, [ebp - 0x4430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi]
call fcn.00438874
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b228f
leave
ret 8