Function at 0x1000a220
Capabilities:
Create thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036d48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1004b034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov dword [ebp - 0x58], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebx + 4]
mov eax, str.Pant
mov dword [ebp - 0x54], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebx + 3]
mov eax, 0x10040b50
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 1
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a2af
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x50], esp
mov byte [esi], bl
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a2c8
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 2
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a317
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 4
mov eax, str.Helm
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov esi, esp
mov edi, 3
mov dword [ebp - 4], edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x10040b5c
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 4
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a377
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a390
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 5
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a3df
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 5
mov eax, str.Armor
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 6
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x10040b68
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 7
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a443
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a460
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 8
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a4af
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 5
mov eax, str.Glove
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 9
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x10040b74
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0xa
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a513
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a530
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0xb
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a57f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 4
mov eax, str.Boot
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 0xc
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x10040b80
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0xd
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a5e3
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a600
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0xe
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a64f
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 6
mov eax, str.Shield
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
mov eax, 0xf
mov dword [ebp - 4], eax
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], eax
lea edi, [eax - 0xc]
mov dword [esi + 0x10], ebx
mov eax, 0x10040b8c
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0x10
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a6ae
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a6c7
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0x11
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a716
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 5
mov eax, str.Sword
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 0x12
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x10040b98
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0x13
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a77a
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a793
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0x14
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a7e2
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 4
mov eax, str.Wing
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 0x15
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x10040ba4
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0x16
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a846
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a860
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0x17
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a8af
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 0xa
mov eax, str.player.bmd
mov dword [ebp - 0x50], esp
mov byte [esi], bl
call fcn.10002d20
sub esp, 0x1c
mov dword [ebp - 4], 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 4
mov eax, str.____
mov dword [ebp - 0x4c], esp
mov byte [esi], bl
call fcn.10002d20
mov byte [ebp - 4], 0x19
cmp dword [0x10153018], 0x10
mov eax, dword [0x10153004]
jae 0x1000a913
mov eax, 0x10153004
sub esp, 0x1c
mov esi, esp
mov ecx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x54], esp
mov byte [esi], bl
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000a930
sub ecx, edi
mov edi, ecx
call fcn.10002d20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10009bf0
add esp, 0x54
mov edi, eax
mov esi, 0x10153004
mov dword [ebp - 4], 0x1a
call fcn.100032d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1000a97f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 4
mov eax, str._xor
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov dword [ebp - 4], 0x1b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1000a9b0
mov eax, esi
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push 0x10153004
call fcn.10007b90
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1000a9d3
mov eax, dword [ebp - 0x1c]
mov esi, 0x10153004
call fcn.10002ea0
mov edi, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x1000a9f1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [0x10153004]
cmp dword [0x10153018], edi
jae 0x1000aa03
mov eax, 0x10153004
push ebx
push 0x102
push 2
push ebx
push 7
push 0x40000000
push eax
mov dword [0x1015e37c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000aa51
push ebx
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
sub ecx, 8
push ecx
add edx, 8
push edx
push esi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1000aa55
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000aad0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10153004]
cmp dword [0x10153018], edi
jae 0x1000aa6d
mov eax, 0x10153004
mov ecx, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1000aa80
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x48]
call fcn.10002d20
mov ecx, esi
mov ebx, 0x101609f8
mov dword [ebp - 4], 0x1c
call fcn.1000aaf0
cmp dword [ebp - 0x34], 0x10
jb 0x1000aab9
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0
push 0
push 0
push 0x10009e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034620
mov esp, ebp
pop ebp
ret 4