Function at 0x2e02fc46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x664], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x668], eax
xor eax, eax
mov ebx, 0x206
xor edi, edi
push ebx
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x656]
push edi
push eax
mov dword [ebp - 0x660], edi
call fcn.2e06e640
push 0x244
lea eax, [ebp - 0x450]
push edi
push eax
call fcn.2e06e640
mov dword [ebp - 0x678], edi
xor eax, eax
lea edi, [ebp - 0x674]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x66c], edi
mov dword [ebp - 0x65c], edi
call fcn.2e06e640
mov eax, dword [esi + 0x21c]
mov eax, dword [eax]
add esp, 0x24
cmp eax, dword [esi + 4]
jb 0x2e02fd0d
call fcn.2e03e006
test eax, eax
je 0x2e02fcff
push 0x2e003e90
call fcn.2e03fc59
cmp dword [esi + 4], edi
je 0x2e02ffa7
jmp 0x2e02ff9d
mov eax, dword [esi]
test al, 2
je 0x2e02fd39
and eax, 0x10000000
push eax
call fcn.2e08037b
test eax, eax
jne 0x2e02fd39
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003e5c
jmp 0x2e02ff83
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.2e02d5f9
test eax, eax
jne 0x2e02fd65
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003e28
jmp 0x2e02ff83
xor ebx, ebx
push ebx
lea eax, [ebp - 0x674]
push eax
push esi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x678], 0xc
call fcn.2e02d5f9
test eax, eax
jne 0x2e02fda0
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003df4
jmp 0x2e02ff83
cmp dword [0x2e0d7594], ebx
jne 0x2e02fded
call fcn.2e030096
test eax, eax
je 0x2e02fded
cmp dword [0x2e0d16d8], 2
jne 0x2e02fde0
mov eax, dword [ebp - 0x668]
mov eax, dword [eax + 0x113c]
cmp eax, ebx
je 0x2e02fdd3
cmp word [eax], bx
je 0x2e02fdd3
mov eax, edi
jmp 0x2e02fdd5
xor eax, eax
mov ebx, dword [ebp - 0x664]
mov dword [ebx + 0x28], eax
jmp 0x2e02fdf3
mov eax, dword [ebp - 0x664]
mov dword [eax + 0x28], edi
mov ebx, eax
jmp 0x2e02fdf3
mov ebx, dword [ebp - 0x664]
mov eax, dword [ebp - 0x668]
mov dword [ebx + 0x14], edi
mov ecx, dword [eax + 0x1140]
mov dword [ebx + 0x30], ecx
push dword [eax + 0x113c]
push 0
push 0
push ebx
call fcn.2e033338
test eax, eax
jne 0x2e02fe30
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003db8
jmp 0x2e02ff83
push dword [ebp - 0x66c]
push esi
call fcn.2e02d6c6
test eax, eax
je 0x2e02ffa7
lea ecx, [ebp - 0x678]
push ecx
push 0x100002
mov edi, 0x104
push edi
lea ecx, [ebp - 0x658]
push ecx
push 0x2e003dac
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.2e03f460
test eax, eax
jne 0x2e02fe9a
call fcn.2e03e006
test eax, eax
je 0x2e02fe89
push 0x2e003d74
call fcn.2e03fc59
push 0
push 0x30303030
call fcn.2e0448b0
jmp 0x2e02ffa7
push 0
lea eax, [ebp - 0x67c]
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x20]
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e02fed0
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003d48
jmp 0x2e02ff83
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.2e02e6a7
push esi
call fcn.2e02ce1d
test eax, eax
je 0x2e02ffa7
lea eax, [ebp - 0x678]
push eax
push ebx
push dword [ebp - 0x668]
lea eax, [ebp - 0x450]
push eax
call fcn.2e02dc2d
test eax, eax
jne 0x2e02ff24
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003d0c
jmp 0x2e02ff83
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.2e0272a0
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x2e003740
call fcn.2e05e339
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x2e024594
call fcn.2e05e339
lea eax, [ebp - 0x678]
push eax
push 0x100002
lea eax, [ebp - 0x20c]
push eax
call fcn.2e02d783
test eax, eax
jne 0x2e02ff8a
call fcn.2e03e006
test eax, eax
je 0x2e02ffa7
push 0x2e003cd8
call fcn.2e03fc59
jmp 0x2e02ffa7
call fcn.2e03e006
test eax, eax
je 0x2e02ff9d
push 0x2e003cb4
call fcn.2e03fc59
mov dword [ebp - 0x65c], 1
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edi, edi
cmp dword [ebp - 0x660], edi
je 0x2e02ffc9
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x65c], edi
je 0x2e02ffef
test dword [esi], 0x10000000
jne 0x2e02ffe2
call fcn.2e02d024
test eax, eax
je 0x2e02ffef
mov eax, dword [esi]
or eax, 0x30000
push eax
call fcn.2e02fba5
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x65c], edi
pop edi
pop esi
pop ebx
jne 0x2e03001e
lea eax, [ebp - 0x658]
push eax
call fcn.2e03dce6
lea eax, [ebp - 0x450]
push eax
call fcn.2e03dce6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
xor ecx, ebp
call fcn.2e06e7f2
leave
ret 0xc