Function at 0x100d0640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101121b3
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], 0
push str.Yj8EbvtiIXgeQ7o9
lea ecx, [ebp - 0x28]
call fcn.10007fa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10001ca0
xor edx, edx
mov ecx, 0x10
div ecx
mov eax, 0x10
sub eax, edx
mov byte [ebp - 0x101], al
mov dword [ebp - 0x11c], 0
jmp 0x100d06c2
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
movsx edx, byte [ebp - 0x101]
cmp dword [ebp - 0x11c], edx
jae 0x100d06e3
movzx eax, byte [ebp - 0x101]
push eax
lea ecx, [ebp - 0x28]
call fcn.100c4b90
jmp 0x100d06b3
lea ecx, [ebp - 0x28]
call fcn.10006d10
mov dword [ebp - 0x13c], eax
lea ecx, [ebp + 8]
call fcn.10006d10
mov dword [ebp - 0x128], eax
mov dword [ebp - 0xfc], 0
push 0x88
push 0
lea ecx, [ebp - 0xf8]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0
lea ecx, [ebp + 8]
call fcn.10001ca0
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
add eax, 0x10
cdq
and edx, 0xf
add eax, edx
sar eax, 4
shl eax, 4
add eax, 1
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
push edx
call fcn.100ff1d0
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x120]
push ecx
push 0
mov edx, dword [ebp - 0x100]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_961]
add esp, 4
push 0
mov ecx, dword [ebp - 0x13c]
push ecx
push 0
call dword [sym.imp.LIBEAY32.dll_Ordinal_2720]
push eax
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.LIBEAY32.dll_Ordinal_2894]
add esp, 0x14
cmp eax, 1
je 0x100d083b
cmp dword [ebp - 0x100], 0
je 0x100d07fe
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x100], 0
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov byte [ebp - 0x102], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10008000
mov al, byte [ebp - 0x102]
jmp 0x100d0ba2
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x100]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.LIBEAY32.dll_Ordinal_276]
add esp, 0x14
cmp eax, 1
je 0x100d08d8
cmp dword [ebp - 0x100], 0
je 0x100d089b
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x100], 0
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov byte [ebp - 0x104], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10008000
mov al, byte [ebp - 0x104]
jmp 0x100d0ba2
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x100]
add ecx, dword [ebp - 0x10c]
push ecx
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.LIBEAY32.dll_Ordinal_2660]
add esp, 0xc
cmp eax, 1
je 0x100d0979
cmp dword [ebp - 0x100], 0
je 0x100d093c
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x100], 0
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov byte [ebp - 0x103], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10008000
mov al, byte [ebp - 0x103]
jmp 0x100d0ba2
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x100]
push eax
lea ecx, [ebp - 0x58]
call fcn.10006c60
mov byte [ebp - 4], 2
cmp dword [ebp - 0x100], 0
je 0x100d09e4
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x100], 0
lea ecx, [ebp - 0x40]
call fcn.10007e50
mov byte [ebp - 4], 3
mov dword [ebp - 0x110], 0
jmp 0x100d0a0b
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0x58]
call fcn.10001ca0
cmp dword [ebp - 0x110], eax
jae 0x100d0a78
mov ecx, dword [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10040fe0
movsx edx, byte [eax]
and edx, 0xff
push edx
push 0x1012daac
lea eax, [ebp - 0x70]
push eax
call fcn.10040530
add esp, 0xc
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp - 0x40]
call fcn.100080f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.10008000
jmp 0x100d09fc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x15c], esp
push 0x1012dac8
call fcn.10002200
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x140]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.10002200
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 3
call fcn.100bcf70
add esp, 0x30
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0
jne 0x100d0b2e
mov byte [ebp - 0x105], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10008000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10008000
mov al, byte [ebp - 0x105]
jmp 0x100d0ba2
mov edx, dword [ebp - 0x118]
push edx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001ca0
push eax
lea ecx, [ebp - 0x40]
call fcn.10006d10
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov byte [ebp - 0x106], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10008000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10008000
mov al, byte [ebp - 0x106]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 0x18