Function at 0x47523e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042b8e5
add esp, 0x14
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x47550b
mov dword [ebp - 0x110], 0
jmp 0x4752aa
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
cmp dword [ebp - 0x110], 0xa4
jae 0x4754f7
mov eax, dword [ebp - 0x110]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x520030]
cmp ecx, dword [ebp - 0xf4]
jne 0x4754f2
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov edx, dword [ebp - 0x110]
imul edx, edx, 0x14
cmp dword [edx + 0x520038], 0
jne 0x47531c
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x100]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x118], ecx
jmp 0x475371
mov edx, dword [ebp - 0x110]
imul edx, edx, 0x14
cmp dword [edx + 0x520038], 0xffffffff
jne 0x47535c
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x100]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x108]
add eax, 8
mov dword [ebp - 0x114], eax
jmp 0x475371
mov ecx, dword [ebp - 0x110]
imul ecx, ecx, 0x14
mov edx, dword [ecx + 0x520038]
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x114], 0
jne 0x4753ce
push 4
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4753ce
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x118]
sub ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x104]
add eax, 8
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x100]
jbe 0x4753eb
mov edx, dword [ebp - 0x100]
sub edx, 8
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x114], 0
je 0x4754e6
mov eax, dword [ebp - 0x110]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x520034]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x110]
imul edx, edx, 0x14
mov eax, dword [edx + 0x52003c]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x110]
imul ecx, ecx, 0x14
mov edx, dword [ecx + 0x520040]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x110]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x520034]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00475517
add esp, 0x18
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4754e4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
je 0x4754e4
push 0
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10c], 1
jmp 0x4754f0
mov dword [ebp - 0x10c], 2
jmp 0x4754f7
jmp 0x47529b
push 0x8000
push 0
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret 8