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

Disassembly:
push 0xffffffffffffffff
push 0x4a2ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa7c
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x10c]
mov dword [esp + 0xa94], esi
call fcn.00413e70
mov ebp, dword [esp + 0xa9c]
mov byte [esp + 0xa94], 1
mov ecx, ebp
call fcn.004128f0
test eax, eax
jle 0x40c930
mov ebx, dword [esp + 0xb04]
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 2
jne 0x40c306
push esi
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0xafc], eax
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0xc
jne 0x40c33e
push esi
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0xaf4], eax
xor ecx, ecx
mov edx, dword [eax + 0x80]
add ecx, 4
cmp ecx, 0xc
mov edx, dword [ecx + edx - 4]
mov dword [esp + ecx + 0xae0], edx
jl 0x40c325
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0xe
jne 0x40c3ec
push esi
mov ecx, ebp
call fcn.004128e0
mov ecx, dword [eax + 0x9c]
mov edx, dword [eax + 0x98]
push ecx
mov ecx, dword [eax + 0x94]
push edx
mov edx, dword [eax + 0x90]
push ecx
mov ecx, dword [eax + 0x8c]
push edx
mov edx, dword [eax + 0x88]
push ecx
mov ecx, dword [eax + 0x84]
push edx
mov edx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x7c]
push edx
mov edx, dword [eax + 0x78]
push ecx
mov ecx, dword [eax + 0x74]
push edx
mov edx, dword [eax + 0x70]
push ecx
mov ecx, dword [eax + 0x6c]
push edx
mov edx, dword [eax + 0x68]
push ecx
mov ecx, dword [eax + 0x64]
push edx
mov edx, dword [eax + 0x60]
push ecx
push edx
lea ecx, [esp + 0x28c]
call fcn.00413e80
lea eax, [esp + 0x24c]
lea ecx, [esp + 0xaa4]
push eax
mov byte [esp + 0xa98], 2
call fcn.004142e0
lea ecx, [esp + 0x24c]
mov byte [esp + 0xa94], 1
call fcn.004340a0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x15
jne 0x40c47f
push esi
mov ecx, ebp
call fcn.004128e0
mov edi, eax
lea ecx, [edi + 0x60]
push ecx
lea ecx, [esp + 0x58]
call fcn.00413d40
lea ecx, [esp + 0x1cc]
mov byte [esp + 0xa94], 3
call fcn.00413e70
mov edx, dword [edi + 0x6c]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x1d4]
mov byte [esp + 0xa9c], 4
call fcn.00413ff0
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esp + 0xaa8]
call fcn.004142e0
lea ecx, [esp + 0x1cc]
mov byte [esp + 0xa94], 3
call fcn.004340a0
lea ecx, [esp + 0x54]
mov byte [esp + 0xa94], 1
call fcn.004340a0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x16
jne 0x40c50a
push esi
mov ecx, ebp
call fcn.004128e0
lea ecx, [esp + 0xcc]
mov edi, eax
call fcn.00413e70
add edi, 0x60
lea ecx, [esp + 0x48]
push edi
mov byte [esp + 0xa98], 5
call fcn.00413d40
lea edx, [esp + 0x48]
lea ecx, [esp + 0xcc]
push edx
mov byte [esp + 0xa98], 6
call fcn.004141e0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa94], 5
call fcn.004340a0
lea eax, [esp + 0xcc]
lea ecx, [esp + 0xaa4]
push eax
call fcn.004142e0
lea ecx, [esp + 0xcc]
mov byte [esp + 0xa94], 1
call fcn.004340a0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x21
jne 0x40c593
push esi
mov ecx, ebp
call fcn.004128e0
add eax, 0x60
lea ecx, [esp + 0x30]
push eax
call fcn.00413d40
lea ecx, [esp + 0x14c]
mov byte [esp + 0xa94], 7
call fcn.00413e70
lea ecx, [esp + 0x30]
mov byte [esp + 0xa94], 8
push ecx
lea ecx, [esp + 0x150]
call fcn.00414220
lea edx, [esp + 0x14c]
lea ecx, [esp + 0xaa4]
push edx
call fcn.004142e0
lea ecx, [esp + 0x14c]
mov byte [esp + 0xa94], 7
call fcn.004340a0
lea ecx, [esp + 0x30]
mov byte [esp + 0xa94], 1
call fcn.004340a0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x1f
jne 0x40c69c
push esi
mov ecx, ebp
call fcn.004128e0
mov edi, eax
lea ecx, [esp + 0x24]
lea eax, [edi + 0x60]
push eax
call fcn.00413d40
lea ecx, [esp + 0x20c]
mov byte [esp + 0xa94], 9
call fcn.00413e70
lea ecx, [esp + 0x24]
mov byte [esp + 0xa94], 0xa
push ecx
lea ecx, [esp + 0x210]
call fcn.00414220
lea edx, [esp + 0x20c]
lea ecx, [esp + 0xaa4]
push edx
call fcn.004142e0
lea eax, [edi + 0x78]
lea ecx, [esp + 0x3c]
push eax
call fcn.00413d40
lea ecx, [esp + 0x18c]
mov byte [esp + 0xa94], 0xb
call fcn.00413e70
mov ecx, dword [edi + 0x84]
lea edx, [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x194]
mov byte [esp + 0xa9c], 0xc
call fcn.00413ff0
lea eax, [esp + 0x18c]
lea ecx, [esp + 0xaa4]
push eax
call fcn.004142e0
lea ecx, [esp + 0x18c]
mov byte [esp + 0xa94], 0xb
call fcn.004340a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa94], 0xa
call fcn.004340a0
lea ecx, [esp + 0x20c]
mov byte [esp + 0xa94], 9
call fcn.004340a0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa94], 1
call fcn.004340a0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x18
jne 0x40c6b2
push esi
mov ecx, ebp
call fcn.004128e0
push esi
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x19
jne 0x40c7fc
mov ecx, dword [ebx]
push str.sphere
inc ecx
mov dword [ebx], ecx
lea ecx, [esp + 0x14]
call sub.Jt52.dll_public:_void___thiscall_JtString::constructor_char_const__
mov ecx, dword [ebx]
lea edx, [esp + 0x60]
push ecx
push 0x4af7c8
push edx
mov byte [esp + 0xaa0], 0xd
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
call sub.Jt52.dll_public:_void___thiscall_JtString::constructor_char_const__
lea ecx, [esp + 0x14]
mov byte [esp + 0xa94], 0xe
push ecx
lea ecx, [esp + 0x14]
call fcn.0043d328
lea ecx, [esp + 0x14]
mov byte [esp + 0xa94], 0xd
call sub.Jt52.dll_public:_void___thiscall_JtString::destructor_void_
lea edx, [esp + 0x28c]
push 0x800
push edx
lea ecx, [esp + 0x18]
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::stringToMbs_char___int_const
push esi
mov ecx, ebp
call fcn.004128e0
fld dword [eax + 0x60]
sub esp, 0x60
lea eax, [esp + 0xb04]
fstp qword [esp + 0x7c]
mov edi, esp
mov dword [esp + 0x78], esp
push eax
mov ecx, edi
call fcn.00413fd0
mov edx, dword [esp + 0xb44]
lea ecx, [edi + 0x40]
mov dword [edi + 0x40], edx
mov eax, dword [esp + 0xb48]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xb4c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0xb50]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xb54]
mov dword [edi + 0x50], ecx
mov edx, dword [esp + 0xb58]
mov dword [edi + 0x54], edx
mov eax, dword [esp + 0xb5c]
mov edx, dword [esp + 0x80]
mov dword [edi + 0x58], eax
mov cx, word [esp + 0xb60]
mov eax, dword [esp + 0x7c]
mov word [edi + 0x5c], cx
push edx
lea ecx, [esp + 0x2f0]
push eax
push ecx
call fcn.0040ae10
mov edx, dword [esp + 0xb0c]
add esp, 0x6c
mov ecx, dword [edx]
push eax
mov edx, dword [ecx]
call dword [edx + 0xcc]
lea ecx, [esp + 0x10]
mov byte [esp + 0xa94], 1
call sub.Jt52.dll_public:_void___thiscall_JtString::destructor_void_
push esi
mov ecx, ebp
call fcn.004128e0
mov ecx, eax
call fcn.00416160
test eax, eax
je 0x40c920
push 0x19
push esi
mov ecx, ebp
call fcn.004128e0
push eax
call fcn.0040fbd0
add esp, 8
test eax, eax
je 0x40c920
lea eax, [esp + 0xaa4]
lea ecx, [esp + 0x10c]
push eax
call fcn.00413fd0
lea ecx, [esp + 0x6c]
call fcn.00413e70
lea ecx, [esp + 0xaa4]
mov byte [esp + 0xa94], 0xf
push ecx
lea ecx, [esp + 0x70]
call fcn.00413fd0
mov edx, dword [esp + 0xae4]
mov ecx, dword [esp + 0xaec]
mov eax, dword [esp + 0xae8]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xafc]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0xaf4]
push ebx
mov dword [esp + 0xc8], edx
sub esp, 0x60
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0xb5c]
mov dword [esp + 0x120], ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
mov dword [esp + 0x120], 0x3f800000
mov dword [esp + 0x128], eax
call fcn.00405820
mov eax, dword [esp + 0xb04]
mov ecx, ebp
push eax
push esi
mov byte [esp + 0xb00], 0xf
call fcn.004128e0
push eax
call fcn.0040c290
add esp, 0x6c
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0xaa8]
call fcn.00413fd0
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa94], 1
call fcn.004340a0
mov ecx, ebp
inc esi
call fcn.004128f0
cmp esi, eax
jl 0x40c2e9
lea ecx, [esp + 0x10c]
mov byte [esp + 0xa94], 0
call fcn.004340a0
lea ecx, [esp + 0xaa4]
mov dword [esp + 0xa94], 0xffffffff
call fcn.004340a0
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa88
ret