joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467972
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x50ade8
mov ecx, edi
call fcn.004961ba
test eax, eax
je 0x4679f8
mov edi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call edi
mov ebx, eax
call edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push 0
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [ebx]
push 0xc350
mov ecx, ebx
call dword [eax + 0x3c]
push eax
mov eax, dword [edi]
push 0x28f3
mov ecx, edi
call dword [eax + 0x3c]
push eax
push 0xff01f546
push dword [esi + 0x434]
push dword [esi + 0x430]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringEx_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
jmp 0x467b62
mov eax, dword [0x50b998]
mov ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [0x50b99c]
mov dword [esp + 0x1c], eax
call fcn.0048e85d
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x14], edx
je 0x467b65
mov edi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call edi
fild qword [esp + 0x18]
mov edx, dword [eax]
push ecx
push ecx
mov ecx, eax
fmul qword [0x4e7280]
fild qword [esp + 0x18]
fdivp st(1)
fstp qword [esp]
push 0x18727
call dword [edx + 0x3c]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringEx_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
xor ebx, ebx
add esp, 0x10
cmp dword [esi + 0x418], ebx
je 0x467abd
call edi
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push 0
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [ebx]
push 0xc350
mov ecx, ebx
call dword [eax + 0x3c]
push eax
lea eax, [esp + 0x78]
push eax
push 0xff01f546
push dword [esi + 0x434]
push dword [esi + 0x430]
call ebp
add esp, 0x28
xor ebx, ebx
cmp dword [esi + 0x418], ebx
je 0x467b65
cmp dword [esi + 0x42c], ebx
jl 0x467b65
jg 0x467ae3
cmp dword [esi + 0x428], ebx
jbe 0x467b65
call sub.WINMM.dll_timeGetTime
sub eax, dword [esi + 0x420]
cmp eax, 0x7d0
jae 0x467b65
push dword [esi + 0x42c]
lea eax, [esp + 0x24]
push dword [esi + 0x428]
push str._I64u
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
call edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push ebx
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [edi]
push 0xc350
mov ecx, edi
call dword [eax + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
push 0xff01f546
push dword [esi + 0x43c]
push dword [esi + 0x438]
call ebp
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x46bdd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], ecx
je 0x46be12
push 0x504a90
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x46be19
push 0x90
push str.D:CQ2ClientRelease_6.2.83DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004c655d
add esp, 0x10
xor eax, eax
jmp 0x46be9e
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
mov dword [ebp - 4], ebx
call esi
add esp, 0x10
cmp dword [ebp - 4], ebx
jle 0x46be90
push edi
mov edi, 0x90
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x46be61
push str.D:CQ2ClientRelease_6.2.83DGameMapTerrainEffectManager.cpp
push 0x98
push 0x5049e0
call fcn.004c655d
add esp, 0xc
push dword [ebp - 8]
push 1
push edi
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0x88
mov ecx, dword [eax]
neg ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.004883ca
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x46be3c
pop edi
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
pop ebx
leave
ret 4
Function at 0x46f871
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4d4f18
call fcn.004ca3a0
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x46f9f3
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push 1
push 4
push eax
call edi
add esp, 0x10
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x46f9f3
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 1
pop esi
push esi
push 4
push eax
call edi
mov eax, dword [ebp - 0x1c]
add esp, 0x10
dec eax
je 0x46f9a6
push 3
pop esi
sub eax, esi
je 0x46f970
sub eax, 6
je 0x46f93a
sub eax, 5
jne 0x46f9e3
push 0x130
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x46f90d
call fcn.00481468
mov esi, eax
jmp 0x46f90f
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46f9e3
push dword [ebp + 8]
mov ecx, esi
call fcn.00481514
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0046f73e
mov ecx, esi
call fcn.0048155f
jmp 0x46f9e3
push 0x80
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], esi
je 0x46f95a
call fcn.00475cd4
mov esi, eax
jmp 0x46f95c
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46f9e3
push dword [ebp + 8]
mov ecx, esi
call fcn.00476075
jmp 0x46f9da
push 0x338
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x46f990
call fcn.00480edf
mov esi, eax
jmp 0x46f992
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46f9e3
push dword [ebp + 8]
mov ecx, esi
call fcn.004812f5
jmp 0x46f9da
push 0x2cc
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], esi
je 0x46f9c6
call fcn.00477c78
mov esi, eax
jmp 0x46f9c8
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46f9e3
push dword [ebp + 8]
mov ecx, esi
call fcn.00478017
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0046f73e
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x46f8b4
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x47167c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0xc], ecx
je 0x47170d
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 8]
push 1
push 4
push eax
call edi
add esp, 0x10
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jle 0x47170d
push ebx
mov esi, 0x509408
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 1
push 0xc
push eax
call edi
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
push eax
push ebx
call fcn.00471579
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00465f61
push 0xffffffffffffffff
push 1
push str.Exit
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0046b746
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4716b2
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x474019
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4d5474
call fcn.004ca3a0
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x47411b
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call esi
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
push ebx
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call esi
and dword [ebp - 0x10], 0
add esp, 0x30
cmp dword [ebp - 0x14], 0
jle 0x47411b
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 1
pop ebx
push ebx
push 4
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x18], 3
je 0x4740d2
cmp dword [ebp - 0x18], 8
jne 0x47410c
push 0x3d4
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x4740bc
mov ecx, eax
call fcn.0048694e
mov ebx, eax
jmp 0x4740be
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x47410c
push dword [ebp + 8]
mov ecx, ebx
call fcn.00486a93
jmp 0x474104
push 0x330
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4740f2
mov ecx, eax
call fcn.00486624
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x47410c
push dword [ebp + 8]
mov ecx, ebx
call fcn.00486891
push ebx
mov ecx, edi
call fcn.00474002
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x47407e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x474704
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x474747
push 0x504a90
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x47474e
push 0x126
push str.D:CQ2ClientRelease_6.2.83DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004c655d
add esp, 0x10
xor eax, eax
jmp 0x474879
mov al, byte [0x508900]
push esi
push edi
mov byte [ebp - 0xc], al
push dword [ebp - 4]
xor eax, eax
lea edi, [ebp - 0xb]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
push 1
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 0xc]
push edi
push eax
call esi
and dword [ebx + 0x128], 0
lea eax, [ebp - 0xc]
push str.PUZZLE
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
jne 0x47479a
mov dword [ebx + 0x128], edi
jmp 0x4747b8
lea eax, [ebp - 0xc]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4747b8
mov dword [ebx + 0x128], 2
cmp dword [ebx + 0x128], 0
jne 0x4747c8
xor edi, edi
jmp 0x47486b
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push 0x100
push edi
push eax
call esi
lea eax, [ebp - 0x114]
add esp, 0x10
test eax, eax
je 0x4747f9
lea eax, [ebp - 0x114]
push eax
lea eax, [ebx + 0x18]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push edi
push 4
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push edi
push 4
push eax
call esi
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004741df
push dword [ebp - 4]
push dword [ebx + 4]
push 2
push dword [ebx + 8]
call esi
add esp, 0x10
cmp dword [ebx + 0x128], 2
jne 0x47485d
push dword [ebp - 4]
lea eax, [ebx + 0x120]
push edi
push 4
push eax
call esi
push dword [ebp - 4]
add ebx, 0x124
push edi
push 4
push ebx
call esi
add esp, 0x20
jmp 0x47486b
and dword [ebx + 0x124], 0
and dword [ebx + 0x120], 0
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x474ee1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x475063
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x100
lea eax, [edi + 0x1e8]
push 1
push eax
call esi
push ebx
push 0x40
lea eax, [edi + 0x1a8]
push 1
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call esi
add esp, 0x40
mov ecx, edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00474d48
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call esi
mov eax, dword [ebp - 0xc]
push ebx
mov dword [edi + 0x2e8], eax
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call esi
mov eax, dword [edi]
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [eax + 0x20]
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
push ebx
mov dword [edi + 0x1a4], eax
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00474eca
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
mov dword [edi + 0x2ec], eax
call fcn.00474d77
mov ecx, edi
call fcn.00474df0
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jle 0x475063
and dword [ebp + 8], 0
cmp dword [ebp - 0x24], 0
jle 0x475058
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call fcn.00474e7d
test eax, eax
mov dword [ebp - 0x14], eax
je 0x47504d
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x10]
add esp, 0x30
mov word [eax + 4], cx
mov cx, word [ebp - 0x18]
mov word [eax + 6], cx
mov cx, word [ebp - 0x1c]
mov word [eax + 8], cx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x24]
jl 0x474ffa
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x474ff0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x476075
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4760d5
push ebx
push ebp
push edi
lea ebp, [esi + 0x2c]
push dword [esp + 0x14]
push 0x40
push 1
pop ebx
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push dword [esp + 0x24]
lea edi, [esi + 0x14]
push ebx
push 8
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
mov ecx, esi
push 0
push ebx
push ebp
push dword [edi + 4]
push dword [edi]
call fcn.00475fd3
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x68]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
pop edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
pop ebp
pop ebx
pop esi
ret 4
Function at 0x477d9d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4d56b6
call fcn.004ca3a0
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x477e82
push 0x504a90
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x477de7
push 0x64
push str.D:CQ2ClientRelease_6.2.83DGameMap2DMapTerrainObj.cpp
push edi
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004c655d
add esp, 0x10
jmp 0x477e82
push ebx
mov ecx, esi
call fcn.00477e92
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [esi + 0x1c0]
push edi
push eax
call sub.MSVCRT.dll_strcpy
xor ebx, ebx
add esp, 0x18
cmp dword [ebp - 0x10], ebx
jle 0x477e57
push 0x358
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x477e37
mov ecx, eax
call fcn.00474a24
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x477e49
push dword [ebp + 8]
mov ecx, edi
call fcn.00474ee1
push edi
mov ecx, esi
call fcn.00477d30
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x477e17
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004a99bd
lea ecx, [edi + 0xc4]
mov ebx, eax
call fcn.004a99bd
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x18]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x478017
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x478088
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
lea ebx, [edi + 0x1c0]
push 0x104
push 1
push ebx
call esi
push dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push 1
push 4
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push 1
push 4
push eax
call esi
add esp, 0x30
lea ecx, [edi + 0xc]
push dword [ebp - 4]
call fcn.004a92f9
push dword [ebp - 8]
lea ecx, [edi + 0xd0]
call fcn.004a92f9
push ebx
mov ecx, edi
call fcn.00477d9d
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x4812f5
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4813bb
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
push 1
pop ebp
lea eax, [esi + 0x194]
push ebp
push eax
call edi
push ebx
push 0x80
lea eax, [esi + 0x298]
push ebp
push eax
call edi
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
push ebx
push ebp
lea eax, [esp + 0x40]
push 4
push eax
call edi
add esp, 0x30
lea ecx, [esi + 0xc]
push dword [esp + 0x18]
call fcn.004a92f9
push ebx
push ebp
lea eax, [esp + 0x18]
push 4
push eax
call edi
add esp, 0x10
lea ecx, [esi + 0xd0]
push dword [esp + 0x10]
call fcn.004a92f9
push ebx
push ebp
lea eax, [esi + 0x320]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x324]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x318]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x31c]
push 4
push eax
call edi
add esp, 0x40
add esi, 0x32c
push ebx
push ebp
push 4
push esi
call edi
add esp, 0x10
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x481514
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x48155a
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
lea eax, [esi + 0x2c]
push 1
push eax
call edi
push ebx
push 1
lea eax, [esi + 0xc]
push 8
push eax
call edi
push ebx
push 1
lea eax, [esi + 0x24]
push 4
push eax
call edi
push ebx
push 1
add esi, 0x28
push 4
push esi
call edi
add esp, 0x40
pop edi
pop esi
pop ebx
ret 4
Function at 0x481df7
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x504a90
mov esi, ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x481e31
push 0x1e7
push str.D:CQ2ClientRelease_6.2.83DGameMapPatternRose.cpp
push dword [esp + 0x18]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004c655d
add esp, 0x10
xor eax, eax
jmp 0x481e86
mov eax, dword [esp + 0xc]
push 0
imul eax, eax, 0x15e0
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
add esi, 0x34c
push 0x15e0
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
call dword [sym.imp.MSVCRT.dll_feof]
add esp, 0x1c
test eax, eax
jne 0x481e7a
push edi
push 0x578
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x481e7c
xor esi, esi
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x486891
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x486944
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
push 1
pop ebp
lea eax, [esi + 0x194]
push ebp
push eax
call edi
push ebx
push 0x80
lea eax, [esi + 0x298]
push ebp
push eax
call edi
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
push ebx
push ebp
lea eax, [esp + 0x40]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esp + 0x48]
push 4
push eax
call edi
add esp, 0x40
lea ecx, [esi + 0xc]
push dword [esp + 0x18]
call fcn.004a92f9
push dword [esp + 0x10]
lea ecx, [esi + 0xd0]
call fcn.004a92f9
push ebx
push ebp
lea eax, [esi + 0x318]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x31c]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x324]
push 4
push eax
call edi
push ebx
push ebp
add esi, 0x32c
push 4
push esi
call edi
add esp, 0x40
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x486a93
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x486afe
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x104
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x298]
push eax
call fcn.00474704
test eax, eax
jne 0x486ae9
push str.D:CQ2ClientRelease_6.2.83DGameMap2DMapPuzzleObj.cpp
push 0x3d
push 0x50630c
call fcn.004c655d
add esp, 0xc
lea eax, [ebp - 0x104]
add esi, 0x194
push eax
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop esi
leave
ret 4
Function at 0x49bca9
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x4d790c
call fcn.004ca3a0
sub esp, 0x3b8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2008], ebx
mov dword [ebp - 0x10], esp
je 0x49bcd3
call fcn.0049c1f0
cmp dword [ebp + 8], ebx
je 0x49be9a
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x49be9a
lea eax, [ebp - 0x3c4]
mov edi, 0x101
push eax
push edi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x49be55
cmp word [ebp - 0x3c4], di
jne 0x49be50
push ebx
push 1
pop edi
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2004], eax
jne 0x49bd3e
call sub.WS2_32.dll_WSAGetLastError
jmp 0x49be50
cmp dword [ebp + 0x10], ebx
je 0x49bd67
lea ecx, [ebp + 0x10]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x49bd67
call sub.WS2_32.dll_WSAGetLastError
jmp 0x49be45
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x8004667e
push dword [esi + 0x2004]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x49bd5d
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x49be45
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x2c], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x49be68
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x49be45
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x40
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x130], edi
call sub.WS2_32.dll_select
cmp eax, ebx
je 0x49be45
jl 0x49bd5d
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49be68
push dword [esi + 0x2004]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
lea eax, [esi + 0x12014]
mov dword [esi + 0x1200c], ebx
mov dword [esi + 0x12010], ebx
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2008], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
lea eax, [esi + 0x1221c]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov eax, edi
jmp 0x49be57
push 5
call dword [sym.imp.MSVCRT.dll_exit]