Function at 0x10044720
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101ce00c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
test ecx, ecx
push eax
pop eax
mov edx, dword [eax]
test bh, bh
mov ecx, dword [eax + 4]
mov ecx, ecx
cmp edx, 2
jne 0x100448e1
cmp ecx, edx
jne 0x100447ee
mov dl, dl
cmp dword [eax + 0x24], 0
jne 0x100447ad
mov byte [esp + 8], 0x14
mov edi, edi
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
test eax, 0x4579
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test eax, 0x469c
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov dl, dl
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov esi, esi
mov eax, 0x15
test ah, ah
jmp 0x1004493d
mov byte [esp + 8], 0x1e
test ch, ch
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
push ecx
pop ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test eax, 0x1bd6
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
push edx
pop edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
test al, al
mov eax, 0x15
test edx, edx
jmp 0x1004493d
cmp ecx, 3
jne 0x10044892
test bl, bl
mov ebp, ebp
cmp dword [eax + 0x24], 0
je 0x10044854
mov byte [esp + 8], 4
mov edi, edi
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
test dl, dl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov ah, ah
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
test eax, 0x5b2b
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
test ebx, ebx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
test eax, 0x76af
mov dword [esp + 0x21], esi
mov dh, dh
mov eax, 0x1d
push edx
pop edx
jmp 0x1004493d
mov byte [esp + 8], 5
test edx, edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
test al, al
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test bh, bh
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov edi, edi
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
push edx
pop edx
mov eax, 0x15
push ebx
pop ebx
jmp 0x1004493d
cmp ecx, 4
jne 0x10044996
mov edi, edi
mov byte [esp + 8], 7
mov ebp, ebp
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov esi, esi
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test cl, cl
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
push ecx
pop ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
test edx, edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
test dl, dl
mov eax, 0x19
mov ah, ah
jmp 0x1004493d
cmp ecx, 1
jne 0x100448ee
mov byte [esp + 8], cl
test ebx, ebx
jmp 0x1004491a
cmp ecx, 0x14
jne 0x100448fc
mov byte [esp + 8], 2
mov edx, edx
jmp 0x1004491a
cmp ecx, 0x1e
jne 0x1004490a
mov byte [esp + 8], 3
mov al, al
jmp 0x1004491a
cmp ecx, 5
jne 0x10044996
mov byte [esp + 8], 6
xchg ebx, eax
xchg ebx, eax
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.10119900
add esp, 0xc
test esi, esi
lea eax, [esi - 7]
push ebx
pop ebx
mov ecx, dword [0x101d3040]
test ecx, ecx
je 0x10044996
cmp ecx, 0xffffffff
je 0x10044996
mov dword [esp + 4], 0
test eax, 0x65f7
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x101d3040]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bh, bh
cmp dword [esp + 4], 0
jne 0x10044996
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101180ca
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.101180ca
add esp, 0x108
ret