Function at 0x5b78e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x634078
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x68b740]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [sym.imp.engine.dll_public:_void___thiscall_KTabFile::constructor_void_]
lea ecx, [esp + 0x18]
call esi
xor ebx, ebx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xe8], ebx
call esi
mov esi, dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::Load_char_const__]
push 0x640d24
mov ecx, 0x1605f5c
mov byte [esp + 0xec], 1
call esi
test eax, eax
jne 0x5b795e
push 0x640d24
push 0x650c8c
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
push 0x650c74
lea ecx, [esp + 0xa8]
call esi
test eax, eax
je 0x5b7fe9
push 0x650c60
lea ecx, [esp + 0x1c]
call esi
test eax, eax
je 0x5b7fe9
lea ecx, [esp + 0x18]
call dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::GetHeight_void_]
mov esi, eax
sub esi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::GetWidth_void_]
cmp eax, ebx
je 0x5b7fe9
cmp esi, ebx
je 0x5b7fe9
xor ecx, ecx
mov eax, esi
mov edx, 0x6b8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00612c66
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0xe8], 2
je 0x5b7a0a
push fcn.0053aa60
push fcn.005b6150
push esi
lea edi, [eax + 4]
push 0x6b8
push edi
mov dword [eax], esi
call fcn.00612f01
mov eax, edi
jmp 0x5b7a0c
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xe8], 1
mov dword [ebp + 0x18], eax
je 0x5b7fe9
mov eax, dword [0x13409f8]
mov edi, dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::GetInteger_int__int__int__int__]
imul eax, eax, 0x56fc
add eax, dword [0x16085a0]
cmp esi, ebx
mov dword [esp + 0x9c], eax
jle 0x5b7e35
mov esi, 2
lea ebx, [ebx]
lea ecx, [esp + 0x7c]
push ecx
push 0xffffffffffffffff
push 1
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x80]
push edx
push 0xffffffffffffffff
push 2
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
push 3
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x88]
push ecx
push 0xffffffffffffffff
push 4
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x8c]
push edx
push 0xffffffffffffffff
push 5
push esi
lea ecx, [esp + 0x28]
call edi
mov eax, dword [esp + 0x7c]
mov ecx, eax
sar ecx, 4
and ecx, 0xf
cmp ecx, 1
je 0x5b7ac2
cmp ecx, 4
jne 0x5b7aca
sub dword [esp + 0x80], 1
mov edx, dword [esp + 0x8c]
push 1
push 0
push 0
push edx
mov edx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push edx
push ecx
mov ecx, dword [esp + 0xbc]
and eax, 0xf
push eax
mov eax, dword [ebp + 0x18]
add eax, ebx
push eax
call fcn.005c9390
lea ecx, [esp + 0x6c]
push ecx
push 0xffffffffffffffff
push 6
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x74]
push edx
push 0xffffffffffffffff
push 7
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x58]
push eax
push 0xffffffffffffffff
push 8
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0xa0]
push ecx
push 0xffffffffffffffff
push 9
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x78]
push edx
push 0xffffffffffffffff
push 0xa
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0xb
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x50]
push ecx
push 0xffffffffffffffff
push 0xc
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x98]
push edx
push 0xffffffffffffffff
push 0xd
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x44]
push eax
push 0xffffffffffffffff
push 0xe
push esi
lea ecx, [esp + 0x28]
call edi
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push eax
push 0xf
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
call edi
lea edx, [esp + 0x40]
push edx
push 0xffffffffffffffff
push 0x10
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x68]
push eax
push 0
push 0x11
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x60]
push ecx
push 0xffffffffffffffff
push 0x12
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x48]
push edx
push 0
push 0x13
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x94]
push eax
push 0
push 0x14
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x54]
push ecx
push 0
push 0x15
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x4c]
push edx
push 0
push 0x16
push esi
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x64]
push eax
push 0
push 0x17
push esi
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x18
push esi
lea ecx, [esp + 0x28]
call edi
lea edx, [esp + 0x5c]
push edx
push 0
push 0x19
push esi
lea ecx, [esp + 0x28]
call edi
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x5b7c76
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [ebp + 0x18]
push eax
add ecx, ebx
call fcn.005b7520
jmp 0x5b7d2a
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x6c]
add eax, ebx
test ecx, ecx
jge 0x5b7c88
mov ecx, 0x3b9aca00
mov dword [eax + 0x580], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x74]
add eax, ebx
test ecx, ecx
jge 0x5b7ca0
mov ecx, 0x3b9aca00
mov dword [eax + 0x584], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xa0]
add eax, ebx
test ecx, ecx
jge 0x5b7cbb
mov ecx, 0x3b9aca00
mov dword [eax + 0x58c], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x70]
add eax, ebx
test ecx, ecx
jge 0x5b7cd3
mov ecx, 0x3b9aca00
mov dword [eax + 0x5a4], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x50]
add eax, ebx
test ecx, ecx
jge 0x5b7ceb
mov ecx, 0x3b9aca00
mov dword [eax + 0x5a8], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x98]
add eax, ebx
test ecx, ecx
jge 0x5b7d06
mov ecx, 0x3b9aca00
mov dword [eax + 0x5ac], ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x58]
add eax, ebx
mov dword [eax + 0x5cc], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x78]
add eax, ebx
mov dword [eax + 0x5d0], ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x60]
mov dword [eax + ebx + 0x5c8], edx
mov ecx, dword [esp + 0x44]
add eax, ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx + 0x5d4], ecx
mov edx, dword [esp + 0x68]
add eax, ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx + 0x5d8], edx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x48]
add eax, ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx + 0x5e8], ecx
mov dword [eax + ebx + 0x5e4], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
add eax, ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx + 0x5e0], ecx
mov dword [eax + ebx + 0x5dc], edx
mov ecx, dword [esp + 0x5c]
add eax, ebx
mov eax, dword [ebp + 0x18]
mov dword [eax + ebx + 0x5f4], ecx
mov edx, dword [ebp + 0x18]
add eax, ebx
lea ecx, [edx + ebx + 0x5dc]
mov edx, dword [esp + 0x64]
mov eax, edx
shl eax, 4
sub eax, edx
add eax, eax
add eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esp + 0x3c]
mov eax, edx
shl eax, 4
sub eax, edx
add eax, eax
add eax, eax
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 0x18]
add ecx, ebx
call fcn.005b75e0
push eax
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0xc4]
push eax
lea ecx, [ebp + 0x28]
mov byte [esp + 0xec], 3
call fcn.0058ca40
lea ecx, [esi - 2]
mov dword [eax], ecx
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add dword [ebp + 0x24], 1
add esi, 1
lea edx, [esi - 2]
add ebx, 0x6b8
cmp edx, dword [esp + 0x14]
jl 0x5b7a50
lea ecx, [esp + 0xa4]
call dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::GetHeight_void_]
sub eax, 1
lea ecx, [esp + 0xa4]
mov dword [ebp + 0x20], eax
call dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KTabFile::GetWidth_void_]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x5b7fe9
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x5b7fe9
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00612c66
add esp, 4
test eax, eax
mov dword [ebp + 0x14], eax
je 0x5b7fe9
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
jle 0x5b7f38
mov eax, dword [ebp + 0x14]
mov dword [eax + ebx*4], 0
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00612c66
mov ecx, dword [ebp + 0x14]
mov dword [ecx + ebx*4], eax
mov edx, dword [ebp + 0x14]
add esp, 4
cmp dword [edx + ebx*4], 0
je 0x5b7fe9
xor eax, eax
cmp dword [ebp + 0x1c], eax
jle 0x5b7f2c
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + ebx*4]
lea esi, [eax*4]
add edx, esi
push edx
add eax, 1
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], eax
lea eax, [ebx + 2]
push eax
lea ecx, [esp + 0xb4]
call edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [esi + ecx]
cmp ecx, 0xffffffff
lea eax, [eax + ebx*4]
je 0x5b7f23
test ecx, ecx
jle 0x5b7f23
mov edx, dword [eax]
add esi, edx
add dword [esi], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0x1c]
jl 0x5b7ee0
add ebx, 1
cmp ebx, dword [ebp + 0x20]
jl 0x5b7e9a
cmp dword [ebp + 0xc], 0
jne 0x5b7f79
push 0x1c
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xe8], 4
je 0x5b7f61
mov ecx, eax
call fcn.005e6f50
jmp 0x5b7f63
xor eax, eax
push 0xa
push 6
mov ecx, eax
mov byte [esp + 0xf0], 1
mov dword [ebp + 0xc], eax
call fcn.005e6f70
cmp dword [ebp + 0x10], 0
jne 0x5b7fba
push 0x1c
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xe8], 5
je 0x5b7fa2
mov ecx, eax
call fcn.005e6f50
jmp 0x5b7fa4
xor eax, eax
push 0xa
push 0xc
mov ecx, eax
mov byte [esp + 0xf0], 1
mov dword [ebp + 0x10], eax
call fcn.005e6f70
mov esi, dword [sym.imp.engine.dll_public_virtual:_void___thiscall_KTabFile::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 0
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xe8], 0xffffffff
call esi
mov eax, 1
jmp 0x5b8013
mov esi, dword [sym.imp.engine.dll_public_virtual:_void___thiscall_KTabFile::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 0
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xe8], 0xffffffff
call esi
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret