Function at 0x40c200
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417de5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x41a6b4
lea eax, [ebp - 0x124]
push str.mob_proto
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x124]
add esp, 0xc
test eax, eax
jne 0x40c274
push str.mob_proto_not_found_n
call fcn.0040b370
jmp 0x40c395
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
push 1
lea eax, [ebp - 0x1c0]
push 4
push eax
call esi
push dword [ebp - 0x124]
lea eax, [ebp - 0x120]
push 1
push 4
push eax
call esi
push dword [ebp - 0x124]
lea eax, [ebp - 0x12c]
push 1
push 4
push eax
call esi
push dword [ebp - 0x12c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x34
mov edi, eax
mov dword [ebp - 0x134], edi
push dword [ebp - 0x1c0]
push str.fourcc__u_n
call fcn.0040b370
push dword [ebp - 0x120]
push str.tableSize__u_n
call fcn.0040b370
push dword [ebp - 0x12c]
push str.dataSize__u_n
call fcn.0040b370
add esp, 0x18
test edi, edi
je 0x40c389
push dword [ebp - 0x124]
push 1
push dword [ebp - 0x12c]
push edi
call esi
add esp, 0x10
mov word [ebp - 0x138], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov ecx, edi
mov dword [ebp - 4], 0
cmp dword [ecx], 0x5a4f434d
je 0x40c3b6
push str.LZObject:_not_a_valid_data_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00407ca0
add esp, 8
push dword [ebp - 0x134]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x148]
call fcn.00414b40
push dword [ebp - 0x124]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004168e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [ecx + 0xc]
lea eax, [ecx + 0x14]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], edi
cmp edi, 0x10000
jae 0x40c40f
mov eax, dword [0x423f2c]
cmp dword [0x423f28], eax
je 0x40c3f7
mov esi, dword [eax - 4]
add eax, 0xfffffffc
push edi
push esi
mov dword [0x423f2c], eax
push str.lzo.reuse_alloc_t_p__d__free_n
jmp 0x40c421
push 0x10000
call fcn.00416a77
add esp, 4
mov esi, eax
push edi
push esi
push str.lzo.reuse_alloc_t_p__d__real_n
jmp 0x40c421
push edi
call fcn.00416a77
add esp, 4
mov esi, eax
push edi
push esi
push str.lzo.real_alloc_t_p__d__n
call fcn.0040b370
mov eax, dword [ebp - 0x134]
add esp, 0xc
mov dword [ebp - 0x148], esi
push dword [eax + 0xc]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x148]
push 0x421020
call fcn.00414cb0
test al, al
je 0x40c36f
cmp byte [ebp - 0x138], 0
mov eax, dword [ebp - 0x140]
je 0x40c47e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40c476
lea eax, [ecx + 0x14]
jmp 0x40c481
mov eax, dword [eax + 8]
add eax, 0x14
jmp 0x40c481
mov eax, dword [eax + 0xc]
push eax
push str.real_size__u_n
call fcn.0040b370
add esp, 8
cmp byte [0x423f14], 0
je 0x40c4d7
xor edi, edi
cmp dword [ebp - 0x120], edi
jbe 0x40c36f
mov esi, dword [ebp - 0x148]
nop dword [eax]
lea eax, [esi + 0x1d]
push eax
push dword [esi]
push str._u__s_n
call fcn.0040b370
inc edi
lea esi, [esi + 0x101]
add esp, 0xc
cmp edi, dword [ebp - 0x120]
jb 0x40c4b0
jmp 0x40c36f
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
lea eax, [ebp - 0x14c]
push 0x41a714
push str.mob_names.txt
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x41a714
push str.mob_proto.txt
push eax
call esi
mov eax, dword [ebp - 0x14c]
add esp, 0xc
test eax, eax
jne 0x40c51a
push str.mob_names.txt_not_writable
jmp 0x40c52c
cmp dword [ebp - 0x130], 0
jne 0x40c5c9
push str.mob_proto.txt_not_writable
call fcn.0040b370
add esp, 4
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x144]
test esi, esi
je 0x40c5ae
cmp byte [ebp - 0x137], 0
jne 0x40c5ae
mov dword [ebp - 0x128], esi
push edi
push esi
cmp edi, 0x10000
jae 0x40c598
push str.lzo.reuse_free_t_p__d__n
call fcn.0040b370
mov eax, dword [0x423f2c]
add esp, 0xc
cmp eax, dword [0x423f30]
je 0x40c589
mov dword [eax], esi
add dword [0x423f2c], 4
jmp 0x40c5ae
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.00415200
jmp 0x40c5ae
push str.lzo.real_free_t_p__d__n
call fcn.0040b370
add esp, 0xc
push esi
call fcn.0041704d
add esp, 4
test edi, edi
je 0x40c398
push edi
push str.lzo.free__d_n
call fcn.0040b370
add esp, 8
jmp 0x40c398
push str.VNUM_tLOCALE_NAME_n
push eax
call fcn.00407ca0
push str.VNUM_tNAME_tRANK_tTYPE_tBATTLE_TYPE_tLEVEL_tSIZE_tAI_FLAG_tMOUNT_CAPACITY_tRACE_FLAG_tIMMUNE_FLAG_tEMPIRE_tFOLDER_tON_CLICK_tST_tDX_tHT_tIQ_tDAMAGE_MIN_tDAMAGE_MAX_tMAX_HP_tREGEN_CYCLE_tREGEN_PERCENT_tGOLD_MIN_tGOLD_MAX_tEXP_tDEF_tATTACK_SPEED_tMOVE_SPEED_tAGGRESSIVE_HP_PCT_tAGGRESSIVE_SIGHT_tATTACK_RANGE_tDROP_ITEM_tRESURRECTION_VNUM_tENCHANT_CURSE_tENCHANT_SLOW_tENCHANT_POISON_tENCHANT_STUN_tENCHANT_CRITICAL_tENCHANT_PENETRATE_tRESIST_SWORD_tRESIST_TWOHAND_tRESIST_DAGGER_tRESIST_BELL_tRESIST_FAN_tRESIST_BOW_tRESIST_FIRE_tRESIST_ELECT_tRESIST_MAGIC_tRESIST_WIND_tRESIST_POISON_tDAM_MULTIPLY_tSUMMON_tDRAIN_SP_tMOB_COLOR_tPOLYMORPH_ITEM_tSKILL_LEVEL0_tSKILL_VNUM0_tSKILL_LEVEL1_tSKILL_VNUM1_tSKILL_LEVEL2_tSKILL_VNUM2_tSKILL_LEVEL3_tSKILL_VNUM3_tSKILL_LEVEL4_tSKILL_VNUM4_tSP_BERSERK_tSP_STONESKIN_tSP_GODSPEED_tSP_DEATHBLOW_tSP_REVIVE_n
push dword [ebp - 0x130]
call fcn.00407ca0
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x120], eax
jbe 0x40c36f
nop dword [eax + eax]
imul edi, eax, 0x101
add edi, dword [ebp - 0x148]
mov dword [ebp - 0x150], edi
lea eax, [edi + 0x1d]
push eax
push dword [edi]
push str._u_t_s_n
push dword [ebp - 0x14c]
call fcn.00407ca0
movzx eax, byte [edi + 0x100]
add esp, 0x10
mov dword [ebp - 0x218], eax
movzx eax, byte [edi + 0xff]
mov dword [ebp - 0x238], eax
movzx eax, byte [edi + 0xfe]
mov dword [ebp - 0x23c], eax
movzx eax, byte [edi + 0xfd]
mov dword [ebp - 0x244], eax
movzx eax, byte [edi + 0xfc]
mov dword [ebp - 0x248], eax
mov eax, dword [edi + 0xf7]
mov dword [ebp - 0x24c], eax
movzx eax, byte [edi + 0xfb]
mov dword [ebp - 0x250], eax
mov eax, dword [edi + 0xf2]
mov dword [ebp - 0x254], eax
movzx eax, byte [edi + 0xf6]
mov dword [ebp - 0x258], eax
mov eax, dword [edi + 0xed]
mov dword [ebp - 0x25c], eax
movzx eax, byte [edi + 0xf1]
mov dword [ebp - 0x260], eax
mov eax, dword [edi + 0xe8]
mov dword [ebp - 0x264], eax
movzx eax, byte [edi + 0xec]
mov dword [ebp - 0x268], eax
mov eax, dword [edi + 0xe3]
mov dword [ebp - 0x174], eax
movzx eax, byte [edi + 0xe7]
mov dword [ebp - 0x178], eax
mov eax, dword [edi + 0xdf]
mov dword [ebp - 0x17c], eax
mov eax, dword [edi + 0xdb]
mov dword [ebp - 0x180], eax
mov eax, dword [edi + 0xd7]
mov dword [ebp - 0x184], eax
mov eax, dword [edi + 0xd3]
mov dword [ebp - 0x188], eax
movsx eax, byte [edi + 0x82]
mov dword [ebp - 0x18c], eax
movsx eax, byte [edi + 0x81]
mov dword [ebp - 0x190], eax
movsx eax, byte [edi + 0x80]
mov dword [ebp - 0x194], eax
movsx eax, byte [edi + 0x7f]
mov dword [ebp - 0x198], eax
movsx eax, byte [edi + 0x7e]
movss xmm0, dword [edi + 0xcf]
mov dword [ebp - 0x19c], eax
movsx eax, byte [edi + 0x7d]
mov dword [ebp - 0x1a0], eax
movsx eax, byte [edi + 0x7c]
mov dword [ebp - 0x1a4], eax
movsx eax, byte [edi + 0x7b]
mov dword [ebp - 0x1a8], eax
movsx eax, byte [edi + 0x7a]
mov dword [ebp - 0x1ac], eax
movsx eax, byte [edi + 0x79]
mov dword [ebp - 0x1b0], eax
movsx eax, byte [edi + 0x78]
mov dword [ebp - 0x1b4], eax
movsx eax, byte [edi + 0x77]
mov dword [ebp - 0x1b8], eax
movsx eax, byte [edi + 0x76]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x1bc], eax
movsx eax, byte [edi + 0x75]
mov dword [ebp - 0x240], eax
movsx eax, byte [edi + 0x74]
mov dword [ebp - 0x1c4], eax
movsd qword [ebp - 0x278], xmm0
movsx eax, byte [edi + 0x73]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x1c8], eax
movsx eax, byte [edi + 0x72]
mov dword [ebp - 0x1cc], eax
mov eax, dword [edi + 0x83]
mov dword [ebp - 0x1d0], eax
mov eax, dword [edi + 0x87]
mov dword [ebp - 0x1d4], eax
movzx eax, word [edi + 0x70]
mov dword [ebp - 0x1d8], eax
movzx eax, word [edi + 0x6e]
mov dword [ebp - 0x1dc], eax
movzx eax, byte [edi + 0x6d]
mov dword [ebp - 0x1e0], eax
movsx eax, word [edi + 0x6b]
mov dword [ebp - 0x1e4], eax
movsx eax, word [edi + 0x69]
mov dword [ebp - 0x1e8], eax
movzx eax, word [edi + 0x4f]
mov dword [ebp - 0x1ec], eax
mov eax, dword [edi + 0x45]
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 0x41]
mov dword [ebp - 0x1f4], eax
mov eax, dword [edi + 0x3d]
mov dword [ebp - 0x1f8], eax
movzx eax, byte [edi + 0x4e]
mov dword [ebp - 0x1fc], eax
movzx eax, byte [edi + 0x4d]
mov dword [ebp - 0x200], eax
mov eax, dword [edi + 0x49]
mov edx, dword [edi + 0x59]
mov dword [ebp - 0x204], eax
mov eax, dword [edi + 0x65]
mov dword [ebp - 0x208], eax
mov eax, dword [edi + 0x61]
mov dword [ebp - 0x20c], eax
movzx eax, byte [edi + 0x60]
mov dword [ebp - 0x210], eax
movzx eax, byte [edi + 0x5f]
mov dword [ebp - 0x214], eax
movzx eax, byte [edi + 0x5e]
mov dword [ebp - 0x26c], eax
movzx eax, byte [edi + 0x5d]
mov dword [ebp - 0x21c], eax
movzx eax, byte [edi + 0x8c]
mov dword [ebp - 0x220], eax
movzx eax, byte [edi + 0x8d]
mov dword [ebp - 0x224], eax
call fcn.004147b0
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x40c8e5
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
mov edx, dword [edi + 0x55]
lea ecx, [ebp - 0x104]
call fcn.00414200
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x40c90b
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
movzx eax, byte [edi + 0x8b]
lea ecx, [ebp - 0xec]
mov edx, dword [edi + 0x51]
mov dword [ebp - 0x228], eax
call fcn.00413c50
mov dword [ebp - 0x15c], eax
cmp dword [eax + 0x14], 0x10
jb 0x40c93a
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
movzx esi, byte [edi + 0x3c]
xorps xmm0, xmm0
test esi, esi
jne 0x40c959
mov eax, 0xf
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], eax
jmp 0x40ca98
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 4], 6
xor eax, eax
nop dword [eax + eax]
lea ecx, [eax + 1]
cmp esi, ecx
je 0x40c990
mov eax, ecx
cmp eax, 3
jb 0x40c980
jmp 0x40c9d5
xor ecx, ecx
lea eax, [eax + eax*2]
cmp byte [0x423f15], cl
lea eax, [eax*8 + 0x421ee8]
cmovne esi, ecx
lea ecx, [ebp - 0x8c]
cmp ecx, eax
je 0x40c9d5
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40c9ba
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040a3d0
movups xmm0, xmmword [ebp - 0x8c]
movups xmmword [ebp - 0x170], xmm0
cmp byte [0x423f15], 0
je 0x40ca80
test esi, esi
je 0x40ca80
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x423f70]
cmp eax, dword [ecx + 4]
jle 0x40ca37
push 0x423f70
call fcn.00416b9d
add esp, 4
cmp dword [0x423f70], 0xffffffff
jne 0x40ca37
push 0x41afd4
push str.debug.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x423f70
mov dword [0x424178], eax
call fcn.00416b53
add esp, 0xc
push str.Mob_Size_not_found
push esi
push str.ERROR:___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
mov ecx, 0x423f78
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ca60
push dword [0x424178]
sub ecx, edx
push ecx
push 1
push 0x423f78
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
movups xmm0, xmmword [ebp - 0x170]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [ebp - 0x64], xmm0
mov eax, dword [ebp - 0x60]
movzx esi, byte [edi + 0x38]
lea ecx, [ebp - 0x74]
cmp eax, 0x10
xorps xmm0, xmm0
movsx eax, word [edi + 0x3a]
cmovae ecx, dword [ebp - 0x74]
mov dword [ebp - 0x230], eax
movzx eax, byte [edi + 0x39]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x234], eax
cmp esi, 0xff
jne 0x40cae3
mov eax, 0xf
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], eax
jmp 0x40cc2b
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 4], 8
xor eax, eax
nop dword [eax + eax]
cmp esi, eax
je 0x40cb1c
inc eax
cmp eax, 8
jb 0x40cb10
jmp 0x40cb65
cmp byte [0x423f15], 0
lea eax, [eax + eax*2]
mov ecx, 0xffffffff
lea eax, [eax*8 + 0x423670]
cmovne esi, ecx
lea ecx, [ebp - 0xa4]
cmp ecx, eax
je 0x40cb65
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40cb4a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040a3d0
movups xmm0, xmmword [ebp - 0xa4]
movups xmmword [ebp - 0x170], xmm0
cmp byte [0x423f15], 0
je 0x40cc10
cmp esi, 0xffffffff
je 0x40cc10
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x423f70]
cmp eax, dword [ecx + 4]
jle 0x40cbc8
push 0x423f70
call fcn.00416b9d
add esp, 4
cmp dword [0x423f70], 0xffffffff
jne 0x40cbc8
push 0x41afd4
push str.debug.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x423f70
mov dword [0x424178], eax
call fcn.00416b53
add esp, 0xc
push str.Mob_BattleType_not_found
push esi
push str.ERROR:___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
mov ecx, 0x423f78
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cbf0
push dword [0x424178]
sub ecx, edx
push ecx
push 1
push 0x423f78
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
movups xmm0, xmmword [ebp - 0x170]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0x94]
movq qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x48]
movzx esi, byte [edi + 0x36]
lea ecx, [ebp - 0x5c]
cmp eax, 0x10
xorps xmm0, xmm0
cmovae ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x160], ecx
cmp esi, 0xff
jne 0x40cc62
mov eax, 0xf
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], eax
jmp 0x40cdab
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0xac], 0
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 4], 0xa
xor eax, eax
nop word [eax + eax]
cmp esi, eax
je 0x40cc9c
inc eax
cmp eax, 0xa
jb 0x40cc90
jmp 0x40cce5
cmp byte [0x423f15], 0
lea eax, [eax + eax*2]
mov ecx, 0xffffffff
lea eax, [eax*8 + 0x422f08]
cmovne esi, ecx
lea ecx, [ebp - 0xbc]
cmp ecx, eax
je 0x40cce5
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40ccca
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040a3d0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [ebp - 0x170], xmm0
cmp byte [0x423f15], 0
je 0x40cd90
cmp esi, 0xffffffff
je 0x40cd90
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x423f70]
cmp eax, dword [ecx + 4]
jle 0x40cd48
push 0x423f70
call fcn.00416b9d
add esp, 4
cmp dword [0x423f70], 0xffffffff
jne 0x40cd48
push 0x41afd4
push str.debug.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x423f70
mov dword [0x424178], eax
call fcn.00416b53
add esp, 0xc
push str.Mob_Type_not_found
push esi
push str.ERROR:___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
mov ecx, 0x423f78
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cd70
push dword [0x424178]
sub ecx, edx
push ecx
push 1
push 0x423f78
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
movups xmm0, xmmword [ebp - 0x170]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0xac]
movq qword [ebp - 0x34], xmm0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x150]
lea edi, [ebp - 0x44]
cmp eax, 0x10
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
cmovae edi, dword [ebp - 0x44]
movzx esi, byte [edx + 0x37]
cmp esi, 0xff
jne 0x40cde6
mov eax, 0xf
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], eax
jmp 0x40cf35
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc0], 0xf
mov byte [ebp - 4], 0xc
xor eax, eax
nop
cmp esi, eax
je 0x40ce1c
inc eax
cmp eax, 6
jb 0x40ce10
jmp 0x40ce65
cmp byte [0x423f15], 0
lea eax, [eax + eax*2]
mov ecx, 0xffffffff
lea eax, [eax*8 + str.PAWN]
cmovne esi, ecx
lea ecx, [ebp - 0xd4]
cmp ecx, eax
je 0x40ce65
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40ce4a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040a3d0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [ebp - 0x170], xmm0
cmp byte [0x423f15], 0
je 0x40cf10
cmp esi, 0xffffffff
je 0x40cf10
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x423f70]
cmp eax, dword [ecx + 4]
jle 0x40cec8
push 0x423f70
call fcn.00416b9d
add esp, 4
cmp dword [0x423f70], 0xffffffff
jne 0x40cec8
push 0x41afd4
push str.debug.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x423f70
mov dword [0x424178], eax
call fcn.00416b53
add esp, 0xc
push str.Mob_Rank_not_found
push esi
push str.ERROR:___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
mov ecx, 0x423f78
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cef0
push dword [0x424178]
sub ecx, edx
push ecx
push 1
push 0x423f78
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
movups xmm0, xmmword [ebp - 0x170]
mov edx, dword [ebp - 0x150]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0xc4]
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x218]
movsd xmm0, qword [ebp - 0x278]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x238]
cmp eax, 0x10
lea eax, [edx + 0x8e]
push dword [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x2c]
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push dword [ebp - 0x174]
push dword [ebp - 0x178]
push dword [ebp - 0x17c]
push dword [ebp - 0x180]
push dword [ebp - 0x184]
push dword [ebp - 0x188]
sub esp, 8
movsd qword [esp], xmm0
push dword [ebp - 0x18c]
push dword [ebp - 0x190]
push dword [ebp - 0x194]
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
push dword [ebp - 0x1a0]
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a8]
push dword [ebp - 0x1ac]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push dword [ebp - 0x1bc]
push dword [ebp - 0x240]
push dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
push dword [ebp - 0x1cc]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1d4]
push dword [ebp - 0x1d8]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e8]
push dword [ebp - 0x1ec]
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f8]
push dword [ebp - 0x1fc]
push dword [ebp - 0x200]
push dword [ebp - 0x204]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push dword [ebp - 0x26c]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push eax
push dword [ebp - 0x224]
lea eax, [edx + 4]
push dword [ebp - 0x154]
push dword [ebp - 0x158]
push dword [ebp - 0x228]
push dword [ebp - 0x15c]
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push dword [ebp - 0x160]
push edi
push ecx
push eax
push dword [edx]
push str._u_t_s_t_s_t_s_t_s_t_u_t_d_t_s_t_s_t_u_t_s_t_s_t_u_t_s_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_d_t_d_t_u_t_u_t_u_t_u_t_u_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_d_t_.1f_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_t_u_n
push dword [ebp - 0x130]
call fcn.00407ca0
mov ecx, dword [ebp - 0x18]
add esp, 0x12c
cmp ecx, 0x10
jb 0x40d134
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d12a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x40d17e
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d174
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x40d1c8
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d1be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0x10
jb 0x40d212
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d208
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0x10
jb 0x40d262
mov edx, dword [ebp - 0xec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d258
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
cmp ecx, 0x10
jb 0x40d2b7
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d2ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0xf
mov byte [ebp - 0x104], 0
cmp ecx, 0x10
jb 0x40d30c
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d302
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d32a
push ecx
push edx
call fcn.00416a46
add esp, 8
mov eax, dword [ebp - 0x128]
inc eax
mov dword [ebp - 0x128], eax
cmp eax, dword [ebp - 0x120]
jb 0x40c600
jmp 0x40c36f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3