Function at 0x470070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov eax, esi
je 0x470096
mov eax, dword [eax + 0x4c]
inc dword [ebp - 4]
cmp eax, edi
jne 0x47008c
mov eax, dword [0x544280]
cmp eax, edi
mov ebx, 0x544280
je 0x4700b3
mov ecx, dword [esi]
cmp eax, ecx
je 0x4700b3
add ebx, 0x24
mov eax, dword [ebx]
cmp eax, edi
jne 0x4700a6
cmp dword [ebx], edi
jne 0x4700c1
mov eax, 0x80004005
jmp 0x470324
push dword [esi]
call fcn.0046c560
mov dword [ebp - 8], eax
mov eax, dword [eax + 8]
pop ecx
shr eax, 3
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x20534444
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
push 0x7c
pop edx
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 8]
test al, 3
push 8
lea esi, [ebx + 4]
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], 0x1007
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], 0x1000
je 0x470142
mov dword [ebp - 0x2c], 0x1002
test al, 0x20
je 0x47014a
or byte [ebp - 0x2b], 1
mov esi, dword [ebp - 0x14]
xor edi, edi
cmp dword [esi + 0x4c], edi
je 0x47016b
mov eax, dword [ebp - 4]
or dword [ebp - 0x2c], 0x400008
mov dword [ebp - 0x90], 0x21007
mov dword [ebp - 0x7c], eax
cmp dword [esi + 0x50], edi
je 0x470178
or dword [ebp - 0x2c], 8
or byte [ebp - 0x27], 0xfe
mov eax, dword [esi + 0x14]
cmp eax, 1
jbe 0x47018e
or byte [ebp - 0x8e], 0x80
or byte [ebp - 0x26], 0x20
mov dword [ebp - 0x80], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
jne 0x4701c1
push edi
lea eax, [ebp - 0xc]
push eax
push 0x400
push dword [esi + 8]
push dword [ebp + 8]
call ebx
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
jmp 0x470309
cmp dword [esi + 0x14], edi
mov dword [ebp - 4], edi
jbe 0x470304
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
jbe 0x4702f5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0x31545844
je 0x4702a9
cmp eax, 0x32545844
je 0x470278
cmp eax, 0x32595559
je 0x47024c
cmp eax, 0x33545844
je 0x470278
cmp eax, 0x34545844
je 0x470278
cmp eax, 0x35545844
je 0x470278
cmp eax, 0x59565955
je 0x47024c
mov ecx, dword [esi + 0x28]
add ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
imul ecx, dword [esi + 0x34]
add eax, edi
imul eax, dword [esi + 0x30]
add eax, ecx
mov ecx, dword [esi + 0x18]
imul ecx, dword [ebp - 0x10]
add eax, ecx
mov ecx, dword [esi + 0xc]
add eax, dword [esi + 4]
imul ecx, dword [ebp - 0x10]
jmp 0x4702dc
mov ecx, dword [esi + 0x28]
add ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
imul ecx, dword [esi + 0x34]
add eax, edi
imul eax, dword [esi + 0x30]
add eax, ecx
mov ecx, dword [esi + 0x18]
imul ecx, dword [ebp - 0x10]
add eax, ecx
add eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
inc ecx
shr ecx, 1
shl ecx, 2
jmp 0x4702dc
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x28]
add ecx, dword [ebp - 4]
add eax, edi
imul ecx, dword [esi + 0x34]
shr eax, 2
imul eax, dword [esi + 0x30]
add eax, ecx
mov ecx, dword [esi + 0x18]
shr ecx, 2
shl ecx, 4
add eax, ecx
mov ecx, dword [esi + 0xc]
add ecx, 3
shr ecx, 2
shl ecx, 4
jmp 0x4702d6
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x28]
add ecx, dword [ebp - 4]
add eax, edi
imul ecx, dword [esi + 0x34]
shr eax, 2
imul eax, dword [esi + 0x30]
add eax, ecx
mov ecx, dword [esi + 0x18]
shr ecx, 2
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 0xc]
add ecx, 3
shr ecx, 2
shl ecx, 3
add eax, dword [esi + 4]
add edi, 3
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x4701e5
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x14]
jb 0x4701db
mov esi, dword [esi + 0x4c]
xor edi, edi
cmp esi, edi
jne 0x4701cc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4701c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4