Function at 0x100394e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10098070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
push edi
lea eax, [esi + 0x13c4]
mov dword [ebp - 0x54], eax
cmp esi, eax
mov al, byte [ebp - 0x4d]
ja 0x100397ba
mov bl, byte [ebp - 0x4d]
mov edx, 0x69
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 0x4d], al
cmp esi, 0x2acf
ja 0x10039652
je 0x10039642
cmp esi, 0x29e9
ja 0x100395e4
je 0x100395d1
cmp esi, 0x295f
ja 0x10039595
je 0x1003957b
cmp esi, 0xbfe
je 0x1003956f
cmp esi, 0x2931
jne 0x100396a6
mov dword [ebp - 0x2c], 0x79004d
jmp 0x100396a6
mov ecx, dword [ebp - 0x58]
mov byte [ecx + 0x10], 1
jmp case.0x10039679.11006
mov edx, 0x6c
mov dword [ebp - 0x28], 0x690046
mov word [ebp - 0x24], dx
mov edx, 0x69
jmp 0x100396a6
mov ecx, esi
sub ecx, 0x298d
je 0x100395be
sub ecx, 0x2e
mov ecx, dword [ebp - 0x54]
jne 0x100396a6
mov dword [ebp - 0x1a], 0x690070
mov dword [ebp - 0x16], 0x67006e
jmp 0x100396a6
mov dword [ebp - 0x22], 0x4d0065
mov dword [ebp - 0x1e], 0x700061
jmp case.0x10039679.11006
mov edx, 0x4f
mov word [ebp - 0x12], dx
mov edx, 0x69
jmp 0x100396a6
lea ecx, [esi - 0x2a17]
cmp ecx, 0x8a
ja case.0x10039679.11006
movzx ecx, byte [ecx + 0x100397e0]
jmp dword [ecx*4 + 0x100397cc]
mov ecx, 0x72
mov word [ebp - 0x48], cx
jmp case.0x10039679.11006
mov ecx, 0x63
mov word [ebp - 0xa], cx
jmp case.0x10039679.11006
mov dword [ebp - 8], 0x74
mov dword [ebp - 0x4c], 0x740053
jmp case.0x10039679.11006
mov ecx, 0x65
mov dword [ebp - 0x10], 0x6a0062
mov word [ebp - 0xc], cx
jmp case.0x10039679.11006
mov dword [ebp - 0x46], 0x6e0069
mov dword [ebp - 0x42], 0x460067
jmp 0x100396a6
cmp esi, 0x2c11
ja 0x10039717
je 0x100396eb
lea ecx, [esi - 0x2afd]
cmp ecx, 0xe6
ja case.0x10039679.11006
movzx ecx, byte [ecx + 0x10039884]
jmp dword [ecx*4 + 0x1003986c]
mov dword [ebp - 0x32], 0x65
jmp case.0x10039679.11006
push 0xbfe
push dword [ebp - 0x58]
mov bl, 1
call fcn.100394e0
add esp, 8
mov al, byte [ebp - 0x4d]
mov edx, 0x69
mov ecx, dword [ebp - 0x54]
add esi, 0x2e
cmp esi, ecx
jbe 0x10039521
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100685c5
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x3e], 0x72006f
jmp case.0x10039679.11006
mov dword [ebp - 0x3a], 0x720057
mov dword [ebp - 0x36], 0x740069
jmp case.0x10039679.11006
mov eax, dword [ebp - 0x58]
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1003969b
lea eax, [ebp - 0x2c]
push eax
push 0x100
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x54]
mov edi, eax
mov al, byte [ebp - 0x4d]
mov edx, 0x69
test edi, edi
jne 0x100396a6
xor bl, bl
jmp 0x100396a6
cmp esi, 0x4d64
ja 0x1003979b
je 0x1003976e
mov ecx, esi
sub ecx, 0x2c3f
je 0x10039747
sub ecx, 0x2e
jne case.0x10039679.11006
lea eax, [ebp - 0x58]
push eax
push 0xfb5
call fcn.10039df0
jmp 0x10039698
test bl, bl
je case.0x10039679.11006
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x1e
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003969b
push 0x3a8b
push 0
push 0
call fcn.10005f70
add esp, 0xc
test al, al
je 0x100397a8
push 0x5402
push dword [ebp - 0x58]
call fcn.10032c20
add esp, 8
mov byte [ebp - 0x4d], al
jmp 0x1003969e
cmp esi, 0x4d92
je 0x100397ba
jmp 0x100396a6
push 0
push 0x7c10
push dword [ebp - 0x58]
call fcn.10006540
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100685c5
mov esp, ebp
pop ebp
ret