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

Disassembly:
push 0xffffffffffffffff
push 0x4a2732
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x250]
mov dword [esp + 0x358], esi
call fcn.00413e70
mov ecx, dword [esp + 0x360]
mov byte [esp + 0x358], 1
mov dword [esp + 0x58], esi
call fcn.004128f0
test eax, eax
jle 0x4057b0
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x360]
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 2
jne 0x403edc
push esi
mov ecx, edi
call fcn.004128e0
mov dword [esp + 0x3c4], eax
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0xf
jne 0x403ef9
push esi
mov ecx, edi
call fcn.004128e0
mov dword [esp + 0x3c0], eax
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0xc
jne 0x403f31
push esi
mov ecx, edi
call fcn.004128e0
mov dword [esp + 0x3bc], 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 + 0x3a8], edx
jl 0x403f18
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0xe
jne 0x403fdf
push esi
mov ecx, edi
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 + 0x350]
call fcn.00413e80
lea eax, [esp + 0x310]
lea ecx, [esp + 0x36c]
push eax
mov byte [esp + 0x35c], 2
call fcn.004142e0
lea ecx, [esp + 0x310]
mov byte [esp + 0x358], 1
call fcn.004340a0
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0x15
jne 0x40407b
push esi
mov ecx, edi
call fcn.004128e0
mov ebx, eax
lea ecx, [ebx + 0x60]
push ecx
lea ecx, [esp + 0x1c4]
call fcn.00413d40
lea ecx, [esp + 0x290]
mov byte [esp + 0x358], 3
call fcn.00413e70
mov edx, dword [ebx + 0x6c]
lea eax, [esp + 0x1c0]
push edx
push eax
lea ecx, [esp + 0x298]
mov byte [esp + 0x360], 4
call fcn.00413ff0
lea ecx, [esp + 0x290]
push ecx
lea ecx, [esp + 0x370]
call fcn.004142e0
lea ecx, [esp + 0x290]
mov byte [esp + 0x358], 3
call fcn.004340a0
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x358], 1
call fcn.004340a0
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0x16
jne 0x4040d1
push esi
mov ecx, edi
call fcn.004128e0
add eax, 0x60
lea ecx, [esp + 0x1cc]
push eax
call fcn.00413d40
lea edx, [esp + 0x1cc]
lea ecx, [esp + 0x36c]
push edx
mov byte [esp + 0x35c], 5
call fcn.004141e0
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x358], 1
call fcn.004340a0
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0x21
jne 0x404167
push esi
mov ecx, edi
call fcn.004128e0
add eax, 0x60
lea ecx, [esp + 0x1b4]
push eax
call fcn.00413d40
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x358], 6
call fcn.00413e70
lea eax, [esp + 0x1b4]
lea ecx, [esp + 0x2d0]
push eax
mov byte [esp + 0x35c], 7
call fcn.00414220
lea ecx, [esp + 0x2d0]
push ecx
lea ecx, [esp + 0x370]
call fcn.004142e0
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x358], 6
call fcn.004340a0
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x358], 1
call fcn.004340a0
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0x18
jne 0x40419c
push esi
mov ecx, edi
call fcn.004128e0
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jne 0x404192
mov dx, cx
mov word [esp + 0x3c8], dx
jmp 0x40419c
mov word [esp + 0x3c8], 0
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 8
jne 0x405630
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x360]
xor ebp, ebp
push eax
mov dword [esp + 0x38], ebp
call fcn.004128e0
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], ecx
xor ebx, ebx
lea edi, [esp + 0xac]
xor esi, esi
push ebx
lea ecx, [esp + 0x370]
call fcn.00414320
mov edx, dword [eax + esi]
add esi, 4
mov dword [edi], edx
add edi, 4
cmp esi, 0x10
jl 0x4041db
inc ebx
cmp ebx, 4
jl 0x4041d9
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x30], ebp
jle 0x405630
mov ecx, dword [esp + 0x3bc]
test ecx, ecx
je 0x404366
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 0x78]
cmp eax, 1
jle 0x404359
mov edx, dword [esp + 0x60]
shl eax, 2
cmp edx, eax
jne 0x404359
mov eax, dword [esp + 0x30]
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x80]
sar eax, 2
mov eax, dword [edx + eax*4]
test eax, eax
jl 0x404263
cmp eax, dword [ecx + 0x78]
jl 0x404265
xor eax, eax
mov edx, dword [ecx + 0x80]
lea eax, [eax + eax*2]
shl eax, 2
fld dword [eax + edx]
fstp dword [esp + 0x78]
mov edx, dword [ecx + 0x80]
fld dword [edx + eax + 4]
fstp dword [esp + 0x7c]
mov edx, dword [ecx + 0x80]
fld dword [edx + eax + 8]
mov dword [esp + 0x84], 0x3f800000
fstp dword [esp + 0x80]
mov edx, dword [ecx + 0x68]
fld dword [eax + edx]
fstp dword [esp + 0x68]
mov edx, dword [ecx + 0x68]
fld dword [edx + eax + 4]
fstp dword [esp + 0x6c]
mov edx, dword [ecx + 0x68]
fld dword [edx + eax + 8]
mov dword [esp + 0x74], 0x3f800000
fstp dword [esp + 0x70]
mov edx, dword [ecx + 0x98]
fld dword [eax + edx]
fstp dword [esp + 0x88]
mov edx, dword [ecx + 0x98]
fld dword [edx + eax + 4]
fstp dword [esp + 0x8c]
mov edx, dword [ecx + 0x98]
fld dword [edx + eax + 8]
mov dword [esp + 0x94], 0x3f800000
fstp dword [esp + 0x90]
mov edx, dword [ecx + 0xb0]
fld dword [eax + edx]
fstp dword [esp + 0x98]
mov edx, dword [ecx + 0xb0]
fld dword [edx + eax + 4]
fstp dword [esp + 0x9c]
mov edx, dword [ecx + 0xb0]
fld dword [edx + eax + 8]
mov dword [esp + 0xa4], 0x3f800000
fstp dword [esp + 0xa0]
mov edx, dword [ecx + 0xc8]
fld dword [eax + edx]
fstp dword [esp + 0xa8]
jmp 0x404418
mov eax, dword [esi + 0x80]
mov eax, dword [eax]
jmp 0x40425a
mov eax, dword [esp + 0x3ac]
mov edx, dword [esp + 0x3b0]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3b4]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0xa8], 0x3f000000
mov edx, dword [esp + 0x368]
mov esi, dword [edx]
mov eax, dword [esi + 4]
test eax, eax
jne 0x404538
push 0x48
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x68]
lea edi, [esp + 0x88]
lea ebx, [esp + 0x98]
add esp, 4
mov dword [esi], eax
sub ecx, esi
sub edx, esi
sub edi, esi
lea eax, [esi + 4]
sub ebx, esi
mov dword [esp + 0x10], 4
mov ebp, dword [ecx + eax]
mov dword [eax + 0x10], ebp
mov ebp, dword [edx + eax]
mov dword [eax], ebp
mov ebp, dword [edi + eax]
mov dword [eax + 0x20], ebp
mov ebp, dword [ebx + eax]
mov dword [eax + 0x30], ebp
mov ebp, dword [esp + 0x10]
add eax, 4
dec ebp
mov dword [esp + 0x10], ebp
jne 0x404467
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x368]
mov dword [esi + 0x44], ecx
mov edi, dword [edx]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
jle 0x4044c9
add ecx, ecx
cmp eax, ecx
jg 0x4044b2
mov eax, ecx
push 0
push 1
push eax
mov ecx, edi
call fcn.0040f920
test eax, eax
jne 0x4044c9
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x4044da
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea eax, [ecx + eax*4]
test eax, eax
je 0x4044d7
mov dword [eax], esi
inc dword [edi + 4]
push esi
call fcn.00403dc0
mov edx, dword [esp + 0x368]
mov dword [esp + 0x38], eax
add esp, 4
mov esi, dword [edx]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
jle 0x40451d
add ecx, ecx
cmp eax, ecx
jg 0x404503
mov eax, ecx
push 0
push 1
push eax
mov ecx, esi
call fcn.0040f920
test eax, eax
jne 0x40451d
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x404b3b
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
test eax, eax
je 0x404b38
mov edx, dword [esp + 0x34]
mov dword [eax], edx
jmp 0x404b38
jle 0x404b42
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x60]
mov edx, dword [edx + 0x78]
shl edx, 2
cmp edi, edx
jne 0x404b42
xor edx, edx
cmp eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
jle 0x4048ca
mov ebx, edx
xor eax, eax
mov edx, dword [esi + 4]
test ebx, ebx
setle al
dec eax
and eax, ebx
mov ebp, eax
cmp ebp, edx
mov dword [esp + 0x38], ebp
jl 0x4045cb
mov eax, dword [esi + 8]
lea edi, [ebp + 1]
cmp ebp, eax
jl 0x4045a8
add eax, eax
cmp edi, eax
jle 0x404591
mov eax, edi
push 1
push 1
push eax
mov ecx, esi
call fcn.0040f920
test eax, eax
jne 0x4045c1
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x4045c4
mov eax, dword [esi]
lea ecx, [eax + edi*4]
lea eax, [eax + edx*4]
cmp eax, ecx
je 0x4045c1
mov dword [eax], 0
add eax, 4
cmp eax, ecx
jne 0x4045b4
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x3bc]
mov edx, dword [esi]
push ecx
fld dword [esp + 0x7c]
mov eax, dword [edx + ebx*4]
fsub dword [eax + 0x14]
fstp dword [esp]
call fcn.00403da0
fcomp dword [0x4a6588]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4048a7
mov edx, dword [esp + 0x368]
mov esi, dword [edx]
mov edx, dword [esi + 4]
cmp ebp, edx
jl 0x404719
mov eax, dword [esi + 8]
cmp ebp, eax
jl 0x4046ea
lea ecx, [eax + eax]
lea eax, [ebp + 1]
cmp eax, ecx
jle 0x40461f
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ecx
shl eax, 2
mov dword [esp + 0x20], eax
lea ebx, [ecx*4]
call fcn.0040f630
push ebx
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x40466f
push 0x14
push str.Allocation_failed:_p__new_JtChar_cNewAllocBytes_
push 0x4a657c
push 0x4a6570
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::throwStdError_char_const___char_const___char_const___int_
add esp, 0x10
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x40470e
mov eax, dword [esi + 4]
xor ebp, ebp
test eax, eax
jle 0x404698
mov ecx, dword [esi]
lea eax, [ebp*4]
add ecx, eax
lea edx, [edi + eax]
push ecx
push edx
call fcn.00441d40
mov eax, dword [esi + 4]
add esp, 8
inc ebp
cmp ebp, eax
jl 0x404678
cmp dword [esi], 0
je 0x4046ad
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
mov eax, ebx
add esp, 4
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::addToMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
add ebx, edi
lea eax, [edi + ecx*4]
mov dword [esi], edi
cmp eax, ebx
je 0x404704
mov dword [eax], 0
add eax, 4
cmp eax, ebx
jne 0x4046db
jmp 0x404704
mov eax, dword [esi]
inc ebp
lea ecx, [eax + ebp*4]
lea eax, [eax + edx*4]
cmp eax, ecx
je 0x404704
mov dword [eax], 0
add eax, 4
cmp eax, ecx
jne 0x4046f7
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 1]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x3bc]
mov ebx, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
fld dword [esp + 0x80]
mov eax, dword [edx + ebx*4]
fsub dword [eax + 0x18]
fstp dword [esp]
call fcn.00403da0
fcomp dword [0x4a6588]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4048a7
mov edx, dword [esp + 0x368]
mov esi, dword [edx]
mov edx, dword [esi + 4]
cmp ebp, edx
jl 0x404873
mov eax, dword [esi + 8]
cmp ebp, eax
jl 0x404843
add eax, eax
lea ecx, [ebp + 1]
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
jg 0x404779
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x20], eax
lea ebx, [ecx*4]
call fcn.0040f630
push ebx
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x4047c9
push 0x14
push str.Allocation_failed:_p__new_JtChar_cNewAllocBytes_
push 0x4a657c
push 0x4a6570
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::throwStdError_char_const___char_const___char_const___int_
add esp, 0x10
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x404868
mov eax, dword [esi + 4]
xor ebp, ebp
test eax, eax
jle 0x4047f1
mov edx, dword [esi]
lea eax, [ebp*4]
add edx, eax
add eax, edi
push edx
push eax
call fcn.00441d40
mov eax, dword [esi + 4]
add esp, 8
inc ebp
cmp ebp, eax
jl 0x4047d2
cmp dword [esi], 0
je 0x404806
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
mov eax, ebx
add esp, 4
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::addToMemory_unsigned_long_long_unsigned___int64__
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
add ebx, edi
mov dword [esi], edi
lea eax, [edi + edx*4]
mov dword [esi + 8], ecx
cmp eax, ebx
je 0x404861
mov dword [eax], 0
add eax, 4
cmp eax, ebx
jne 0x404834
jmp 0x404861
mov eax, dword [esi]
inc ebp
mov dword [esp + 0x24], ebp
lea ecx, [eax + ebp*4]
lea eax, [eax + edx*4]
cmp eax, ecx
je 0x404861
mov dword [eax], 0
add eax, 4
cmp eax, ecx
jne 0x404854
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x3bc]
mov ebx, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
fld dword [esp + 0x84]
mov eax, dword [edx + ebx*4]
fsub dword [eax + 0x1c]
fstp dword [esp]
call fcn.00403da0
fcomp dword [0x4a6588]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4048a7
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x368]
inc ebx
mov dword [esp + 0x18], ebx
mov esi, dword [edx]
cmp ebx, dword [esi + 4]
jl 0x404568
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x404b42
lea eax, [esp + 0x64]
push eax
call fcn.00403dc0
mov ecx, dword [esp + 0x368]
mov dword [esp + 0x38], eax
add esp, 4
mov esi, dword [ecx]
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
mov eax, dword [esi + 8]
cmp ecx, eax
jle 0x4049b2
lea edx, [eax + eax]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jg 0x404904
mov dword [esp + 0x14], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
lea ebp, [eax*4]
call fcn.0040f630
push ebp
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404952
push 0x14
push str.Allocation_failed:_p__new_JtChar_cNewAllocBytes_
push 0x4a657c
push 0x4a6570
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::throwStdError_char_const___char_const___char_const___int_
add esp, 0x10
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x4049d1
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x40497b
mov ecx, dword [esi]
lea eax, [edi*4]
add ecx, eax
lea edx, [ebx + eax]
push ecx
push edx
call fcn.00441d40
mov eax, dword [esi + 4]
add esp, 8
inc edi
cmp edi, eax
jl 0x40495b
cmp dword [esi], 0
je 0x404990
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
mov eax, ebp
add esp, 4
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::addToMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [edx + ecx*4]
lea ecx, [esp + 0x34]
push eax
push 1
push ecx
call fcn.0040fa60
mov eax, dword [esi + 4]
add esp, 0xc
inc eax
mov dword [esi + 4], eax
push 0x48
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x36c]
mov dword [esp + 0x30], eax
add esp, 4
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov eax, 0x14
sub ecx, eax
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + eax + 0x64]
mov dword [eax + esi], edx
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + eax]
mov dword [eax + esi - 0x10], edx
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + eax + 0x74]
mov dword [eax + esi + 0x10], edx
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + eax + 0x84]
mov dword [eax + esi + 0x20], edx
add eax, 4
cmp eax, 0x24
jl 0x404a02
fld dword [esp + 0xa8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x368]
fstp dword [eax + 0x44]
mov esi, dword [ecx]
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
mov eax, dword [esi + 8]
cmp ecx, eax
jle 0x404b20
lea edx, [eax + eax]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jg 0x404a72
mov dword [esp + 0x14], edx
lea edx, [eax*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
lea ebp, [eax*4]
call fcn.0040f630
push ebp
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404ac0
push 0x14
push str.Allocation_failed:_p__new_JtChar_cNewAllocBytes_
push 0x4a657c
push 0x4a6570
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::throwStdError_char_const___char_const___char_const___int_
add esp, 0x10
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
jmp 0x404b3b
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x404ae9
mov ecx, dword [esi]
lea eax, [edi*4]
add ecx, eax
lea edx, [ebx + eax]
push ecx
push edx
call fcn.00441d40
mov eax, dword [esi + 4]
add esp, 8
inc edi
cmp edi, eax
jl 0x404ac9
cmp dword [esi], 0
je 0x404afe
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
mov eax, ebp
add esp, 4
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::addToMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [edx + ecx*4]
lea ecx, [esp + 0x2c]
push eax
push 1
push ecx
call fcn.0040fa60
add esp, 0xc
inc dword [esi + 4]
mov ecx, dword [esp + 0x3bc]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x68]
cmp dword [edx + eax*4], 0xffffffff
jne 0x40561b
mov ecx, eax
push 0x24
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x20]
sub edi, ecx
inc edi
lea edx, [edi - 2]
mov dword [esp + 0x3c], edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x24
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ebx, [edi*4]
mov dword [esp + 0x30], eax
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp + 0x20], eax
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x404bb9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
shl ecx, 2
mov ebp, dword [ebp + 0x68]
inc eax
mov ebp, dword [ecx + ebp]
add ecx, 4
mov dword [edx + eax*4 - 4], ebp
mov ebp, dword [esp + 0x3c]
cmp eax, edi
jl 0x404ba3
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c4]
add esp, 4
test eax, eax
je 0x404c0b
mov ecx, dword [eax + 0x60]
test ecx, ecx
jle 0x404c0b
cmp dword [ebp + 0x90], 1
jle 0x404c0b
xor eax, eax
test edi, edi
jle 0x404c0b
mov edx, dword [esp + 0x1c]
lea ecx, [edx*4]
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 0x98]
inc eax
mov ebx, dword [ecx + ebx]
add ecx, 4
mov dword [edx + eax*4 - 4], ebx
cmp eax, edi
jl 0x404bf6
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
test ecx, ecx
jle 0x4055e3
mov eax, dword [esp + 0x5c]
xor edx, edx
test eax, eax
setle dl
dec edx
mov dword [esp + 0x38], ecx
and edx, eax
shl eax, 2
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
lea ebp, [eax + 8]
mov dword [esp + 0x18], ebp
jmp 0x404c4c
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [esp + 0x3c4]
cmp word [esp + 0x3c8], 1
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
fld dword [eax + ecx*4]
fld dword [eax + ecx*4 + 4]
fld dword [eax + ecx*4 + 8]
lea eax, [eax + ecx*4]
fld dword [esp + 0xcc]
fmul st(1)
fld dword [esp + 0xbc]
fmul st(3)
faddp st(1)
fld dword [esp + 0xac]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xdc]
fstp dword [esi]
fld dword [esp + 0xd0]
fmul st(1)
fld dword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb0]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe0]
fstp dword [esi + 4]
fld dword [esp + 0xd4]
fmul st(1)
fld dword [esp + 0xc4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb4]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe4]
fstp dword [esi + 8]
mov eax, dword [ebp - 4]
mov edx, dword [esp + 0x3c4]
fstp st(0)
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
fstp st(0)
lea eax, [eax + ecx*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0xcc]
fmul st(1)
fld dword [esp + 0xbc]
fmul st(3)
faddp st(1)
fld dword [esp + 0xac]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xdc]
jne 0x404e2f
fstp dword [esi + 0x18]
fld dword [esp + 0xd0]
fmul st(1)
fld dword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb0]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe0]
fstp dword [esi + 0x1c]
fld dword [esp + 0xd4]
fmul st(1)
fld dword [esp + 0xc4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb4]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe4]
fstp dword [esi + 0x20]
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c4]
fstp st(0)
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
fstp st(0)
lea eax, [eax + ecx*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0xcc]
fmul st(1)
fld dword [esp + 0xbc]
fmul st(3)
faddp st(1)
fld dword [esp + 0xac]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xdc]
fstp dword [esi + 0xc]
fld dword [esp + 0xd0]
fmul st(1)
fld dword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb0]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe0]
fstp dword [esi + 0x10]
fld dword [esp + 0xd4]
fmul st(1)
fld dword [esp + 0xc4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb4]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe4]
fstp dword [esi + 0x14]
jmp 0x404f20
fstp dword [esi + 0xc]
fld dword [esp + 0xd0]
fmul st(1)
fld dword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb0]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe0]
fstp dword [esi + 0x10]
fld dword [esp + 0xd4]
fmul st(1)
fld dword [esp + 0xc4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb4]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe4]
fstp dword [esi + 0x14]
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c4]
fstp st(0)
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
fstp st(0)
lea eax, [eax + ecx*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0xcc]
fmul st(1)
fld dword [esp + 0xbc]
fmul st(3)
faddp st(1)
fld dword [esp + 0xac]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xdc]
fstp dword [esi + 0x18]
fld dword [esp + 0xd0]
fmul st(1)
fld dword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb0]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe0]
fstp dword [esi + 0x1c]
fld dword [esp + 0xd4]
fmul st(1)
fld dword [esp + 0xc4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xb4]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xe4]
fstp dword [esi + 0x20]
mov eax, dword [esp + 0x3c0]
fstp st(0)
fstp st(0)
test eax, eax
fstp st(0)
je 0x4051c1
mov ecx, dword [eax + 0x60]
test ecx, ecx
jle 0x4051c1
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x148]
call fcn.00413d60
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x16c]
mov byte [esp + 0x364], 8
call fcn.00413d60
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x184]
mov byte [esp + 0x364], 9
call fcn.00413d60
lea ecx, [esp + 0x40]
mov byte [esp + 0x358], 0xa
call fcn.00413d30
lea ecx, [esp + 0x120]
mov byte [esp + 0x358], 0xb
call fcn.00413d30
lea ecx, [esp + 0x12c]
mov byte [esp + 0x358], 0xc
call fcn.00413d30
mov edx, dword [esp + 0x178]
mov eax, dword [esp + 0x17c]
sub esp, 0xc
mov byte [esp + 0x364], 0xd
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x198]
mov dword [ecx + 4], eax
mov eax, esp
sub esp, 0xc
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x184]
mov edx, dword [esp + 0x188]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18c]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x164]
mov dword [edx], eax
mov eax, dword [esp + 0x168]
mov dword [edx + 4], ecx
lea ecx, [esp + 0x208]
push ecx
mov dword [edx + 8], eax
call fcn.00402b70
add esp, 0x28
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xf0], edx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0xf0]
mov byte [esp + 0x358], 0xe
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x48], edx
call fcn.004340a0
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x358], 0xd
call fcn.004340a0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1a0], ecx
mov dword [esp + 0x124], ecx
lea ecx, [esp + 0x19c]
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a4], edx
mov dword [esp + 0x120], eax
mov dword [esp + 0x128], edx
call fcn.004340a0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x194], ecx
mov dword [esp + 0x130], ecx
lea ecx, [esp + 0x190]
mov dword [esp + 0x190], eax
mov dword [esp + 0x198], edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x134], edx
call fcn.004340a0
lea ecx, [ebx + 0x18]
xor eax, eax
mov edx, dword [esp + eax + 0x40]
add eax, 4
mov dword [ecx - 0x18], edx
mov edx, dword [esp + eax + 0x11c]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + eax + 0x128]
mov dword [ecx], edx
add ecx, 4
cmp eax, 0xc
jl 0x40512f
lea ecx, [esp + 0x12c]
mov byte [esp + 0x358], 0xc
call fcn.004340a0
lea ecx, [esp + 0x120]
mov byte [esp + 0x358], 0xb
call fcn.004340a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x358], 0xa
call fcn.004340a0
lea ecx, [esp + 0x178]
mov byte [esp + 0x358], 9
call fcn.004340a0
lea ecx, [esp + 0x160]
mov byte [esp + 0x358], 8
call fcn.004340a0
lea ecx, [esp + 0x13c]
jmp 0x405436
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x154]
call fcn.00413d60
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
lea ecx, [esp + 0x178]
mov byte [esp + 0x364], 0xf
call fcn.00413d60
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
lea ecx, [esp + 0x160]
mov byte [esp + 0x364], 0x10
call fcn.00413d60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x358], 0x11
call fcn.00413d30
lea ecx, [esp + 0x114]
mov byte [esp + 0x358], 0x12
call fcn.00413d30
lea ecx, [esp + 0x108]
mov byte [esp + 0x358], 0x13
call fcn.00413d30
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x158]
sub esp, 0xc
mov byte [esp + 0x364], 0x14
mov eax, esp
sub esp, 0xc
mov dword [eax], ecx
mov ecx, dword [esp + 0x174]
mov dword [eax + 4], edx
mov edx, esp
sub esp, 0xc
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x190]
mov ecx, dword [esp + 0x194]
mov dword [edx], eax
mov eax, dword [esp + 0x198]
mov dword [edx + 4], ecx
mov ecx, esp
mov dword [edx + 8], eax
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x170]
mov dword [ecx], edx
mov edx, dword [esp + 0x174]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1fc]
push eax
mov dword [ecx + 8], edx
call fcn.00402b70
add esp, 0x28
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov byte [esp + 0x358], 0x15
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
lea ecx, [esp + 0xfc]
call fcn.004340a0
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x358], 0x14
call fcn.004340a0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x114], ecx
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], eax
call fcn.004340a0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x108], ecx
lea ecx, [esp + 0x184]
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], eax
call fcn.004340a0
lea ecx, [ebx + 0x18]
xor eax, eax
mov edx, dword [esp + eax + 0x4c]
add eax, 4
mov dword [ecx - 0x18], edx
mov edx, dword [esp + eax + 0x110]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + eax + 0x104]
mov dword [ecx], edx
add ecx, 4
cmp eax, 0xc
jl 0x4053a9
lea ecx, [esp + 0x108]
mov byte [esp + 0x358], 0x13
call fcn.004340a0
lea ecx, [esp + 0x114]
mov byte [esp + 0x358], 0x12
call fcn.004340a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x358], 0x11
call fcn.004340a0
lea ecx, [esp + 0x154]
mov byte [esp + 0x358], 0x10
call fcn.004340a0
lea ecx, [esp + 0x16c]
mov byte [esp + 0x358], 0xf
call fcn.004340a0
lea ecx, [esp + 0x148]
mov byte [esp + 0x358], 1
call fcn.004340a0
mov eax, dword [esp + 0x364]
mov ecx, dword [esp + 0x10]
mov edi, dword [eax]
mov edx, dword [edi + 4]
cmp ecx, edx
jl 0x4055ad
mov eax, dword [edi + 8]
cmp ecx, eax
jl 0x4057f4
add eax, eax
inc ecx
cmp ecx, eax
mov dword [esp + 0x24], ecx
jg 0x405475
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x24]
lea ecx, [eax*4]
mov eax, dword [0x4ddf28]
test eax, eax
mov dword [esp + 0x138], ecx
lea ebp, [edx*4]
je 0x4054a4
mov dword [esp + 0x1c], 0
jmp 0x4054ee
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
cmp dword [eax], 0
jne 0x4054e8
push eax
mov dword [0x4ddf28], 1
call dword [sym.imp.Jt52.dll_public:_static_void___cdecl_JtPlatform::_createInstance_class_JtPlatform___]
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
add esp, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x4054e2
mov eax, dword [ecx]
mov dword [esp + 0x1c], ecx
call dword [eax]
mov ecx, dword [esp + 0x1c]
lock inc dword [ecx + 4]
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
dec dword [0x4ddf28]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x405524
push 0x14
push str.Allocation_failed:_p__new_JtChar_cNewAllocBytes_
push 0x4a657c
push 0x4a6570
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::throwStdError_char_const___char_const___char_const___int_
add esp, 0x10
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
mov ebp, dword [esp + 0x18]
jmp 0x4055a9
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
jle 0x405547
mov ecx, ebx
mov edx, dword [edi]
test ecx, ecx
lea edx, [edx + eax*4]
je 0x40553c
mov edx, dword [edx]
mov dword [ecx], edx
mov edx, dword [edi + 4]
inc eax
add ecx, 4
cmp eax, edx
jl 0x40552f
cmp dword [edi], 0
je 0x40555f
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x1c]
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
mov eax, ebp
add esp, 4
cdq
push edx
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::addToMemory_unsigned_long_long_unsigned___int64__
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 4]
mov dword [edi + 8], eax
lea ecx, [ebx + ebp]
lea eax, [ebx + edx*4]
mov dword [edi], ebx
cmp eax, ecx
je 0x40559b
mov dword [eax], 0
add eax, 4
cmp eax, ecx
jne 0x40558e
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov ebx, dword [esp + 0x28]
mov edi, dword [edi]
mov ecx, dword [esp + 0xec]
add edi, ecx
push 0
push 0
push 0
mov ecx, dword [edi]
push 0
push 3
push ebx
mov edx, dword [ecx]
push 3
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x38]
add ebp, 4
dec eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], eax
jne 0x404c48
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3cc]
add esp, 0x10
lea eax, [edx - 1]
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x40421d
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x360]
push esi
mov ecx, edi
call fcn.004128e0
mov ecx, eax
call fcn.00416160
test eax, eax
je 0x40579c
push 8
push esi
mov ecx, edi
call fcn.004128e0
push eax
call fcn.0040fbd0
add esp, 8
test eax, eax
je 0x40579c
push esi
mov ecx, edi
call fcn.004128e0
cmp dword [eax + 0x4c], 0xb
je 0x40579c
lea eax, [esp + 0x36c]
lea ecx, [esp + 0x250]
push eax
call fcn.00413fd0
lea ecx, [esp + 0x1f0]
call fcn.00413e70
lea ecx, [esp + 0x36c]
mov byte [esp + 0x358], 0x16
push ecx
lea ecx, [esp + 0x1f4]
call fcn.00413fd0
mov eax, dword [esp + 0x3b0]
mov edx, dword [esp + 0x3ac]
mov ecx, dword [esp + 0x3b4]
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x3c0]
mov dword [esp + 0x230], edx
mov edx, dword [esp + 0x3c4]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x3cc]
mov dword [esp + 0x248], edx
mov dx, word [esp + 0x3c8]
mov dword [esp + 0x238], ecx
mov ecx, dword [esp + 0x3bc]
push eax
mov word [esp + 0x250], dx
sub esp, 0x60
mov dword [esp + 0x2a4], ecx
lea edx, [esp + 0x254]
mov ecx, esp
mov dword [esp + 0x150], esp
push edx
mov dword [esp + 0x2a4], 0x3f800000
call fcn.00405820
mov eax, dword [esp + 0x3cc]
mov ecx, dword [esp + 0x3c8]
push eax
push ecx
push esi
mov ecx, edi
mov byte [esp + 0x3c8], 0x16
call fcn.004128e0
push eax
call fcn.00403e60
add esp, 0x70
lea edx, [esp + 0x250]
lea ecx, [esp + 0x36c]
push edx
call fcn.00413fd0
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x358], 1
call fcn.004340a0
inc esi
mov ecx, edi
mov dword [esp + 0x58], esi
call fcn.004128f0
cmp esi, eax
jl 0x403eb4
lea ecx, [esp + 0x250]
mov byte [esp + 0x358], 0
call fcn.004340a0
lea ecx, [esp + 0x36c]
mov dword [esp + 0x358], 0xffffffff
call fcn.004340a0
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34c
ret
mov eax, dword [esp + 0x10]
lea ecx, [eax + 1]
mov eax, dword [edi]
lea ecx, [eax + ecx*4]
lea eax, [eax + edx*4]
cmp eax, ecx
je 0x40559f
mov dword [eax], 0
add eax, 4
cmp eax, ecx
jne 0x40580b
jmp 0x40559f