Function at 0x438ac7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4654
call fcn.004b0a70
mov eax, dword [0x55f6c0]
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 0x438aff
mov edi, dword [ebx]
call fcn.0043838b
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [esi + 4]
jl 0x438b17
mov eax, 0x10000
jmp 0x438d6d
cmp edi, dword [esi + 0x10]
jge 0x438b2a
call fcn.00437e01
jmp 0x438b2a
mov esi, dword [ebx]
call fcn.00437e36
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x438b23
mov esi, dword [ebp - 0x464c]
push edi
lea ebx, [ebp - 0x4648]
mov ecx, esi
call fcn.0043856f
test byte [ebp - 0x443c], 0x10
je 0x438b6a
lea eax, [ebp - 0x4644]
push eax
add esi, 0x240
push esi
call fcn.004389e0
pop ecx
pop ecx
xor eax, eax
jmp 0x438d6d
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 0x438b7e
mov eax, dword [ebp - 0x4654]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x438b94
sub eax, edx
lea edi, [ebp - 0x210]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x438ba8
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 0x438cad
movzx edx, word [ebp - 0x210]
cmp dx, 0x2f
je 0x438bed
cmp dx, 0x5c
jne 0x438bf0
lea eax, [ecx + 2]
inc ecx
inc ecx
movzx edx, word [ecx]
cmp dx, di
jne 0x438be1
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x438cad
xor ecx, ecx
movzx edx, word [ebp + ecx - 0x210]
mov word [ebp + ecx - 0x418], dx
inc ecx
inc ecx
cmp dx, di
jne 0x438c0a
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 0x438c60
cmp word [ebp - 0x418], 0x2f
je 0x438c60
cmp word [ebp - 0x418], 0x5c
je 0x438c60
cmp word [ebp - 0x416], 0x3a
je 0x438c60
xor bl, bl
jmp 0x438c62
mov bl, 1
lea eax, [ebp - 0x418]
push 0x52f4b8
push eax
call fcn.004ab6cc
mov esi, eax
lea eax, [ebp - 0x418]
push 0x52f4c0
push eax
call fcn.004ab6cc
add esp, 0x10
test eax, eax
setne al
cmp esi, edi
setne cl
or al, cl
or al, bl
jne 0x438cad
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x4650]
call fcn.004389e0
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 0x438cdb
mov eax, 0x200
jmp 0x438d6d
mov esi, dword [ebp - 0x464c]
push dword [esi + 0x23c]
mov ebx, dword [esi]
call fcn.0043804a
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x4418]
push eax
mov eax, dword [esi]
mov ecx, 0x4000
call fcn.0043819f
pop ecx
cmp eax, 0xffffff96
je 0x438d33
test eax, eax
jl 0x438d3a
je 0x438d41
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 0x438cf1
mov ebx, 0x400
jmp 0x438d5d
mov ebx, 0x1000
jmp 0x438d5d
mov ebx, 0x5000000
jmp 0x438d5d
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.0043838b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa923
leave
ret 8