Function at 0x10003600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10029540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1002c7a0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100250c0
push str._s__PES2014_Read_Original_Uni_Color_n
call fcn.1000cb42
add esp, 8
xor edi, edi
cmp dword [0x1008f11c], 8
push edi
push 0x80
push 2
push edi
push 5
mov eax, 0x1008f108
cmovae eax, dword [0x1008f108]
push 0x40000000
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1002ae24], eax
cmp eax, 0xffffffff
je 0x10003689
push edi
lea ecx, [ebp - 0xc]
push ecx
push 3
lea ecx, [ebp - 8]
push ecx
push eax
mov word [ebp - 8], 0xbbef
mov byte [ebp - 6], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x100250f8
push 0x10025158
call fcn.10008190
push str.Uni_Color_debug_log_begin
push 0x100251a0
call fcn.10008190
push 0x55
push str.Size_of_uni_block__0x_x
push 0x100251e8
call fcn.10008190
push 0x10025210
push 0x100251fc
call fcn.10008190
add esp, 0x24
test esi, esi
je 0x100038ae
lea ecx, [esi - 1]
mov eax, 0xc0c0c0c1
mul ecx
mov eax, edx
shr eax, 6
add ebx, 4
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov eax, pe_nt_image_headers32
movzx ecx, byte [ebx - 3]
imul cx, ax
movzx eax, byte [ebx - 4]
add cx, ax
movzx edi, cx
push edi
push edi
push dword [ebp - 0x10]
push str._04d_Team_ID_:__04d___04x_
push 0x100252ac
call fcn.10008190
lea edx, [ebx - 4]
mov ecx, edi
call fcn.100034b0
movzx eax, byte [ebx]
push eax
push str.Kit_num_:__d
push 0x100252dc
call fcn.10008190
xor ecx, ecx
add esp, 0x20
mov dword [ebp - 0x14], ecx
cmp byte [ebx], cl
jbe 0x10003893
imul edi, edi, 0x604c
lea esi, [ebx + 5]
lea esp, [esp]
movzx eax, byte [esi - 4]
mov ebx, eax
and eax, 0xf
shr ebx, 4
mov dword [ebp - 8], eax
cmp eax, 8
movzx eax, bl
je 0x100037b2
movzx eax, byte [eax + 0x1002ad80]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 8]
movzx eax, al
lea eax, [eax + ecx*2]
lea eax, [eax + eax*2]
cmp dword [edi + eax*8 + 0x100a72d8], 0
je 0x1000383d
push str.Get_data_from_GDB.
push 0x10025318
call fcn.10008190
movzx eax, byte [ebx + 0x1002ad80]
mov ecx, dword [ebp - 8]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
imul ecx, ecx, 0x98
jmp 0x100037ea
mov al, byte [eax + 0x1002ad80]
inc al
movzx eax, al
imul eax, eax, 0xf0
cmp dword [eax + edi + 0x100a72d8], 0
je 0x1000383d
push str.Get_data_from_GDB__GK_.
push 0x1002535c
call fcn.10008190
movzx ecx, byte [ebx + 0x1002ad80]
inc ecx
imul ecx, ecx, 0x5f0
mov al, byte [ecx + edi + 0x100a806a]
add ecx, edi
add esp, 8
mov byte [esi - 3], al
cmp dword [ecx + 0x100a8060], 0
je 0x1000383d
movzx eax, byte [ecx + 0x100a8064]
mov byte [esi - 2], al
movzx eax, byte [ecx + 0x100a8065]
mov byte [esi - 1], al
movzx eax, byte [ecx + 0x100a8066]
mov byte [esi], al
movzx eax, byte [ecx + 0x100a8067]
mov byte [esi + 1], al
movzx eax, byte [ecx + 0x100a8068]
mov byte [esi + 2], al
movzx eax, byte [ecx + 0x100a8069]
mov byte [esi + 3], al
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi - 1]
mov ebx, dword [ebp - 0x14]
push eax
movzx eax, byte [esi - 2]
push eax
movzx eax, byte [esi - 3]
push eax
movzx eax, byte [esi - 4]
push eax
push dword [ebp - 8]
push ebx
push str.Kit__02d_Kit__02x_type___02x__Icon_type___02x__Color_1___02x_02x_02x__Color_2___02x_02x_02x
push 0x10025434
call fcn.10008190
inc ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x18]
add esp, 0x30
movzx eax, byte [ebx]
add esi, 8
cmp dword [ebp - 0x14], eax
jl 0x10003750
mov edi, dword [ebp - 0x10]
inc edi
add ebx, 0x55
dec dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ebx
mov eax, pe_nt_image_headers32
jne 0x100036f0
push edi
push str.Total_team_count___d
push 0x10025474
call fcn.10008190
push str.Uni_Color_debug_log_end.
push 0x100254bc
call fcn.10008190
mov eax, dword [0x1002ae24]
add esp, 0x14
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x100038e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1002c7a0
mov dword [0x1002ae24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bd47
mov esp, ebp
pop ebp
ret