Function at 0x10009cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
imul esi, esi, 0x393
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x15c], esi
cmp edx, esi
ja 0x1000a16f
jmp 0x10009d36
mov ebx, dword [ebp - 0x168]
cmp edx, 0xb0
ja 0x1000a12f
je 0x10009da4
mov ecx, edx
sub ecx, 0x7e
je 0x10009d61
sub ecx, 0x1b
jne 0x1000a13f
mov ecx, dword [edi]
mov dword [0x10040158], ecx
jmp 0x1000a13f
mov eax, dword [edi + 0x1c]
cmp eax, 0x18
jae 0x10009d72
mov eax, dword [eax*4 + 0x10034350]
jmp 0x10009d7a
mov eax, dword [edi + 0x18]
lea eax, [eax + eax*4]
add eax, eax
push 4
push eax
mov dword [edi + 4], eax
call fcn.10027233
mov esi, dword [ebp - 0x15c]
xor edx, edx
add esp, 8
test eax, eax
setne dl
mov dword [edi], eax
mov eax, edx
mov edx, dword [ebp - 0x14c]
jmp 0x1000a13f
cmp byte [ebx], 0
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x12c], ecx
mov eax, ebx
mov dword [ebp - 0x130], ebx
je 0x1000a0eb
lea ebx, [esi - 4]
add esi, 0xfffffff8
lea esp, [esp]
lea edx, [ebp - 0x25]
cmp ecx, edx
jae 0x1000a0eb
mov al, byte [eax]
cmp al, 0x25
je 0x10009dff
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x12c], ecx
jmp 0x1000a0c9
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
mov al, byte [eax]
xor edi, edi
xor edx, edx
mov ecx, 1
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x150], ecx
test al, al
je 0x1000a0c9
jmp 0x10009e30
movsx eax, al
mov dword [ebp - 0x128], eax
add eax, 0xffffffd3
cmp eax, 0x4b
ja case.0x10009e4c.46
movzx eax, byte [eax + 0x1000a1ac]
jmp dword [eax*4 + 0x1000a180]
mov dword [ebp - 0x150], 0xffffffff
mov ecx, dword [ebp - 0x150]
jmp 0x10009e8e
lea eax, [edi + edi*4]
mov edi, dword [ebp - 0x128]
lea eax, [edi + eax*2 - 0x30]
mov dword [ebp - 0x144], eax
mov edi, eax
jmp 0x10009e8e
test dl, 1
je 0x10009e86
or edx, 2
jmp 0x10009e8e
or edx, 1
jmp 0x10009e8e
or edx, 4
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
mov al, byte [eax]
test al, al
jne 0x10009e30
jmp 0x1000a0c9
mov dword [ebp - 0x140], 0xa
jmp 0x10009ec8
mov dword [ebp - 0x140], 8
jmp 0x10009ec8
mov dword [ebp - 0x140], 0x10
mov edi, edx
test dl, 2
je 0x10009ee3
mov ecx, dword [esi + 8]
add esi, 8
mov dword [ebp - 0x138], esi
mov esi, dword [esi + 4]
add ebx, 8
jmp 0x10009f20
add esi, 4
add ebx, 4
mov dword [ebp - 0x138], esi
test dl, 1
je 0x10009f0e
and edi, 4
mov dword [ebp - 0x134], ebx
je 0x10009f05
mov ecx, dword [ebx]
xor esi, esi
jmp 0x10009f26
mov eax, dword [ebx]
cdq
mov ecx, eax
mov esi, edx
jmp 0x10009f26
and edi, 4
je 0x10009f19
mov ecx, dword [ebx]
xor esi, esi
jmp 0x10009f20
mov eax, dword [ebx]
cdq
mov ecx, eax
mov esi, edx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], 0
test edi, edi
jne 0x10009f45
test esi, esi
jg 0x10009f45
jl 0x10009f3e
test ecx, ecx
jae 0x10009f45
neg ecx
adc esi, 0
neg esi
mov edx, ecx
or edx, esi
jne 0x10009f55
mov dword [ebp - 0x128], 1
mov eax, ecx
or eax, esi
lea edi, [ebp - 7]
mov byte [ebp - 7], 0
je 0x10009fb4
mov eax, dword [ebp - 0x140]
cdq
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edx
jmp 0x10009f80
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x164]
push edx
push eax
push esi
push ecx
dec edi
call fcn.10028230
mov cl, byte [ecx + str.SnSReachChestEnd]
mov byte [edi], cl
mov ecx, eax
mov esi, edx
mov edx, ecx
or edx, esi
mov dword [ebp - 0x16c], ebx
jne 0x10009f80
mov ebx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x140]
cmp eax, 0x10
jne 0x10009fcb
mov byte [edi - 1], 0x78
sub edi, 2
mov byte [edi], 0x30
jmp 0x10009fd0
cmp eax, 8
je 0x10009fd9
cmp dword [ebp - 0x128], 0
je 0x10009fdd
dec edi
mov byte [edi], 0x30
mov eax, dword [ebp - 0x150]
imul eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x128]
push eax
push edi
push ecx
lea edx, [ebp - 0x24]
push 0x24
push edx
call fcn.100052b0
mov esi, dword [ebp - 0x138]
add esp, 0x14
mov dword [ebp - 0x12c], eax
jmp 0x1000a0c9
mov al, byte [ebx + 4]
add ebx, 4
add esi, 4
imul ecx, edi
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x13c]
mov byte [ebp - 0x13c], al
mov byte [ebp - 0x13b], 0
push edx
jmp 0x1000a067
mov eax, dword [ebx + 4]
add ebx, 4
add esi, 4
imul ecx, edi
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], ecx
push eax
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x24]
push 0x24
push ecx
call fcn.100052b0
add esp, 0x14
mov dword [ebp - 0x12c], eax
jmp 0x1000a0c9
imul ecx, edi
mov dword [ebp - 0x128], ecx
call fcn.100281e1
mov edx, dword [eax]
push edx
call fcn.10028135
mov edx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
push ecx
push eax
push edx
lea eax, [ebp - 0x24]
push 0x24
push eax
call fcn.100052b0
add esp, 0x18
mov dword [ebp - 0x12c], eax
jmp 0x1000a0c9
mov dword [ebp - 0x130], str.Xverb
mov eax, dword [ebp - 0x130]
mov edi, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x12c]
inc eax
cmp byte [eax], 0
mov dword [ebp - 0x130], eax
jne 0x10009de0
lea eax, [ebp - 0x124]
mov byte [ecx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a0f7
push 0
sub eax, edx
lea ecx, [ebp - 0x158]
push ecx
push eax
mov eax, dword [edi]
lea edx, [ebp - 0x124]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000a169
mov edx, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x15c]
or eax, 0xffffffff
jmp 0x1000a13f
cmp edx, 0x5a90
je 0x1000a16f
cmp edx, 0x7e80
je 0x1000a16f
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0xb7
add edx, ecx
mov dword [ebp - 0x14c], edx
cmp edx, esi
jbe 0x10009d30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret