Function at 0x438ac2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4654
call fcn.004b0350
mov eax, dword [0x55c6c0]
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 0x438afa
mov edi, dword [ebx]
call fcn.00438386
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [esi + 4]
jl 0x438b12
mov eax, 0x10000
jmp 0x438d68
cmp edi, dword [esi + 0x10]
jge 0x438b25
call fcn.00437dfc
jmp 0x438b25
mov esi, dword [ebx]
call fcn.00437e31
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x438b1e
mov esi, dword [ebp - 0x464c]
push edi
lea ebx, [ebp - 0x4648]
mov ecx, esi
call fcn.0043856a
test byte [ebp - 0x443c], 0x10
je 0x438b65
lea eax, [ebp - 0x4644]
push eax
add esi, 0x240
push esi
call fcn.004389db
pop ecx
pop ecx
xor eax, eax
jmp 0x438d68
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 0x438b79
mov eax, dword [ebp - 0x4654]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x438b8f
sub eax, edx
lea edi, [ebp - 0x210]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x438ba3
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 0x438ca8
movzx edx, word [ebp - 0x210]
cmp dx, 0x2f
je 0x438be8
cmp dx, 0x5c
jne 0x438beb
lea eax, [ecx + 2]
inc ecx
inc ecx
movzx edx, word [ecx]
cmp dx, di
jne 0x438bdc
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x438ca8
xor ecx, ecx
movzx edx, word [ebp + ecx - 0x210]
mov word [ebp + ecx - 0x418], dx
inc ecx
inc ecx
cmp dx, di
jne 0x438c05
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 0x438c5b
cmp word [ebp - 0x418], 0x2f
je 0x438c5b
cmp word [ebp - 0x418], 0x5c
je 0x438c5b
cmp word [ebp - 0x416], 0x3a
je 0x438c5b
xor bl, bl
jmp 0x438c5d
mov bl, 1
lea eax, [ebp - 0x418]
push 0x52d378
push eax
call fcn.004aafac
mov esi, eax
lea eax, [ebp - 0x418]
push 0x52d380
push eax
call fcn.004aafac
add esp, 0x10
test eax, eax
setne al
cmp esi, edi
setne cl
or al, cl
or al, bl
jne 0x438ca8
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x4650]
call fcn.004389db
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 0x438cd6
mov eax, 0x200
jmp 0x438d68
mov esi, dword [ebp - 0x464c]
push dword [esi + 0x23c]
mov ebx, dword [esi]
call fcn.00438045
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x4418]
push eax
mov eax, dword [esi]
mov ecx, 0x4000
call fcn.0043819a
pop ecx
cmp eax, 0xffffff96
je 0x438d2e
test eax, eax
jl 0x438d35
je 0x438d3c
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 0x438cec
mov ebx, 0x400
jmp 0x438d58
mov ebx, 0x1000
jmp 0x438d58
mov ebx, 0x5000000
jmp 0x438d58
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.00438386
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa206
leave
ret 8