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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
lea esi, [edx + 0xc]
mov dword [esp + 0x78], ecx
call 0x4c157b
pop eax
lea ecx, [edx + 0x18]
mov edi, edx
mov dword [esp + 0x20], esi
mov esi, 0x800013
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], ecx
jmp 0x4c15aa
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x4c15d0
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x4c1638
jmp 0x4c167b
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x4c1606
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c166c
cmp eax, 5
je 0x4c2e8b
mov ebx, dword [esp + 0x28]
cmp bl, 4
je 0x4c1626
jmp 0x4c2e7f
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x4c1623
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
ja 0x4c167b
bt esi, ecx
jae 0x4c167b
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c15aa
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c15a0
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
jmp 0x4c15a0
mov bh, byte [esp + 0x29]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x4c1619
jmp 0x4c1623
cmp eax, 0x5b
jne 0x4c2e5b
dec byte [edi + 0x40]
je 0x4c2e75
mov byte [edi + 0x3c], 0
mov esi, dword [esp + 0x5c]
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c16be
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c16b3
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x5b
inc eax
mov dword [edi + 0x14], eax
mov al, 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 4
mov dword [esp + 0x88], 0
mov dword [esp + 0x14], eax
jmp 0x4c16fa
cmp byte [edi + 0x3c], 0
je 0x4c1750
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x4c17bc
mov eax, dword [ecx*4 + 0x4c3014]
add eax, esi
jmp eax
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x4c1786
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c17da
cmp eax, 5
je 0x4c2eaf
mov ebx, dword [esp + 0x28]
cmp bl, 4
je 0x4c17a6
jmp 0x4c2ea7
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x4c17a3
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
jbe 0x4c1712
cmp eax, 0x5d
je 0x4c2db9
cmp byte [esp + 0x14], 0
je 0x4c2fdf
cmp bh, 0x5d
jne 0x4c17f4
jmp 0x4c2fd2
mov bh, byte [esp + 0x29]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x4c1799
jmp 0x4c17a3
mov al, 1
jmp 0x4c180e
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
movzx eax, byte [edi + 0x3c]
test al, al
je 0x4c1830
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x4c189c
jmp 0x4c18e6
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x4c186a
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c18d7
cmp eax, 5
je 0x4c2e51
mov ebx, dword [esp + 0x28]
cmp bl, 4
je 0x4c188a
jmp 0x4c2e49
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x4c1887
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
ja 0x4c18e6
mov edx, 0x800013
bt edx, ecx
jae 0x4c18e6
mov byte [edi + 0x3c], 0
xor eax, eax
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c180e
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c1800
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
jmp 0x4c1800
mov bh, byte [esp + 0x29]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x4c187d
jmp 0x4c1887
cmp bh, 0x5b
je 0x4c1df6
cmp eax, 0x7b
jne 0x4c2fec
dec byte [edi + 0x40]
je 0x4c2fc5
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c192e
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c1923
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x7b
inc eax
mov dword [edi + 0x14], eax
mov al, 1
mov cl, 2
mov ebx, 0x80000000
mov dword [esp + 0xb0], 0
mov dword [esp + 0x68], 0x80000001
mov dword [esp + 0x10], 0x80000001
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], cl
mov byte [esp + 0x1c], al
mov dword [esp + 0x14], ebx
jmp 0x4c197a
cmp byte [edi + 0x3c], 0
je 0x4c19d0
mov bh, byte [edi + 0x3d]
mov edx, dword [esp + 0x7c]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x4c1a4a
mov eax, dword [ecx*4 + 0x4c30a4]
add eax, esi
jmp eax
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x4c1a0a
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c1a16
cmp eax, 5
je 0x4c2486
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x7c]
cmp bl, 4
je 0x4c1a34
jmp 0x4c23ac
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
jmp 0x4c1a1a
mov bh, byte [esp + 0x29]
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x7c]
inc eax
cmp bh, 0xa
jne 0x4c1a31
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
jbe 0x4c1996
cmp eax, 0x7d
je 0x4c1f42
test byte [esp + 0x1c], 1
jne 0x4c25f5
cmp bh, 0x22
jne 0x4c2502
mov byte [edi + 0x3c], 0
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c1a98
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c1a8d
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x22
inc eax
mov dword [edi + 0x14], eax
mov edx, dword [esp + 0x20]
mov dword [edi + 8], 0
lea ecx, [esp + 0x28]
push edi
call fcn.0053c9d0
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], 2
je 0x4c22f7
lea ecx, [esp + 0x60]
mov edx, eax
push dword [esp + 0x30]
call fcn.0052f610
add esp, 4
cmp byte [esp + 0x60], 0
jne 0x4c22f3
movzx eax, byte [esp + 0x61]
cmp eax, 4
jbe 0x4c1b4b
mov ecx, edi
call fcn.00406d60
test eax, eax
jne 0x4c22f7
mov ecx, edi
call fcn.004018e0
test eax, eax
mov byte [esp + 0x1c], 1
je 0x4c197a
jmp 0x4c231a
mov eax, dword [eax*4 + 0x4c3134]
add eax, esi
jmp eax
dec byte [edi + 0x40]
je 0x4c2fc5
mov byte [edi + 0x3c], 0
lea esi, [esp + 0x28]
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c1e30
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c1e25
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x5b
inc eax
mov dword [edi + 0x14], eax
mov dword [esp + 0x8c], edi
mov byte [esp + 0x90], 1
jmp 0x4c1e5a
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x4c1e80
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x4c1eea
jmp 0x4c1f32
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x4c1eb8
mov edx, dword [esp + 0x6c]
mov ecx, esi
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c1f23
cmp eax, 5
je 0x4c2469
mov ebx, dword [esp + 0x28]
cmp bl, 4
je 0x4c1ed8
jmp 0x4c2461
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x4c1ed5
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
ja 0x4c1f32
mov edx, 0x800013
bt edx, ecx
jae 0x4c1f32
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x4c1e5a
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x4c1e50
mov ecx, dword [esp + 0x20]
call fcn.00437650
mov eax, dword [edi + 0x14]
jmp 0x4c1e50
mov bh, byte [esp + 0x29]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x4c1ecb
jmp 0x4c1ed5
cmp eax, 0x5d
jne 0x4c1fd4
mov bl, 2
jmp 0x4c1ff1
test byte [esp + 0x18], 1
mov eax, 0
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0xac]
cmovne eax, dword [esp + 0xa4]
cmp esi, 0x80000001
cmovne ecx, dword [esp + 0xa0]
cmovne edx, dword [esp + 0xf0]
sete bl
mov dword [esp + 0x74], eax
mov eax, 0x80000000
cmove esi, eax
cmp dword [esp + 0x14], 0x80000000
mov dword [esp + 0xac], ecx
mov dword [esp + 0x7c], edx
je 0x4c23c1
mov ebx, dword [esp + 0x10]
and byte [esp + 0x24], 1
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ecx
mov dword [esp + 0xfc], edx
cmp ebx, 0x80000001
cmove ebx, eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x94]
jmp 0x4c2760
mov ecx, esi
mov edx, edi
mov byte [esp + 0x90], 0
call fcn.0051ec40
cmp byte [esp + 0x28], 0
jne 0x4c201e
movzx ebx, byte [esp + 0x29]
mov ecx, esi
lea edx, [esp + 0x8c]
call fcn.004141f0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c2062
cmp eax, 1
jne 0x4c201e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
jmp 0x4c206a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov ebx, 0x80000000
jmp 0x4c2aeb
mov dword [esp + 0x1c], 0
mov ecx, esi
lea edx, [esp + 0x8c]
call fcn.004137f0
mov eax, dword [esp + 0x28]
cmp eax, 0x80000002
je 0x4c21bb
cmp eax, 0x80000001
je 0x4c24bf
mov esi, dword [esp + 0x8c]
movsd xmm0, qword [esp + 0x2c]
mov dword [esp + 0x18], eax
and bl, 1
mov byte [esp + 0x24], bl
lea eax, [esi + 0xc]
lea ecx, [esi + 0x18]
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
jmp 0x4c20da
cmp byte [esi + 0x3c], 0
je 0x4c2100
mov bh, byte [esi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
jbe 0x4c2170
jmp 0x4c221b
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x24], eax
jne 0x4c213a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
call fcn.0053d7f0
movzx eax, byte [esp + 0x28]
cmp eax, 4
je 0x4c21ac
cmp eax, 5
je 0x4c253d
mov ebx, dword [esp + 0x28]
cmp bl, 4
je 0x4c215a
jmp 0x4c2531
mov ecx, dword [esi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x34]
inc eax
cmp bh, 0xa
jne 0x4c2157
add dword [esi + 0x38], eax
inc dword [esi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [esi + 0x34], eax
mov byte [esi + 0x3c], 1
mov byte [esi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x4c221b
mov eax, dword [ecx*4 + 0x4c3148]
add eax, dword [esp + 0x5c]
jmp eax
mov bh, byte [esp + 0x29]
mov eax, dword [esi + 0x34]
inc eax
cmp bh, 0xa
je 0x4c214d
jmp 0x4c2157
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
test edx, edx
mov dword [esp + 0xc], eax
jne 0x4c2ad4
mov ebx, 0x80000000
jmp 0x4c2aeb
cmp eax, 0x5d
je 0x4c254a
cmp byte [esp + 0x90], 0
je 0x4c2517
mov byte [esp + 0x90], 0
cmp bh, 0x5d
je 0x4c24db
lea ebx, [esp + 0x28]
mov edx, esi
mov ecx, ebx
call fcn.0041f130
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
jne 0x4c227a
mov eax, dword [esp + 0x2c]
test dword [esp + 0x18], 0x7fffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
je 0x4c2ac8
jmp 0x4c2d76
mov ecx, ebx
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x8c]
mov dword [esp + 0x14], eax
call fcn.00413e50
mov ecx, dword [esp + 0x28]
cmp ecx, 0x80000002
je 0x4c2341
cmp ecx, 0x80000001
je 0x4c2597
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
movaps xmm0, xmmword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xf4], edx
movaps xmmword [esp + 0x160], xmm0
mov dword [esp + 0x74], eax
jmp 0x4c2aeb
mov eax, dword [esp + 0x64]
mov cl, 1
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
cmp esi, 0x80000002
mov dword [esp + 0xc], eax
jge 0x4c262d
jmp 0x4c264e
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov cl, 1
cmp esi, 0x80000002
mov dword [esp + 0xc], eax
jge 0x4c262d
jmp 0x4c264e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
test esi, esi
mov dword [esp + 0xc], eax
je 0x4c25be
mov eax, dword [esp + 0x24]
mov ebx, esi
lea esi, [eax + 0x3c]
jmp 0x4c236a
add esi, 0x48
dec ebx
je 0x4c25be
lea ecx, [esi - 0x2c]
call fcn.00530f50
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4c238d
cmp dword [esi - 8], 0
je 0x4c238d
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi - 4]
cmp eax, 0x80000000
je 0x4c2360
test eax, eax
je 0x4c2360
push dword [esi]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x4c2360
movzx eax, bl
lea ecx, [esp + 0x28]
cmp eax, 5
je 0x4c248a
jmp 0x4c2447
mov ecx, str.primitivesbufferbyteLengthbyteStrideattributesmaterialmodetargetsPOSITIONNORMALTANGENT_home_rafalh_.cargo_registry_src_index.crates.io_6f17d22bba15001f_gltf_1.0.0_src_mesh_mod.rs
mov edx, 0xa
mov byte [esp + 0x1c], bl
call fcn.0053c7d0
test esi, 0x7fffffff
je 0x4c23f4
push dword [esp + 0xac]
push 0
push dword [0x5970d8]
mov esi, eax
call sub.KERNEL32.dll_HeapFree
mov eax, esi
mov ecx, dword [esp + 0x74]
mov ebx, 0x80000000
test ecx, ecx
je 0x4c241d
cmp dword [esp + 0x98], 0
je 0x4c241d
push ecx
push 0
push dword [0x5970d8]
mov esi, eax
call sub.KERNEL32.dll_HeapFree
mov eax, esi
mov esi, dword [esp + 0x10]
movzx ecx, byte [esp + 0x1c]
cmp esi, 0x80000002
mov dword [esp + 0xc], eax
jge 0x4c262d
jmp 0x4c264e
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
call fcn.00486e60
jmp 0x4c260f
movzx eax, bl
cmp eax, 5
jne 0x4c24e8
mov edx, dword [edi + 0x30]
mov dword [esp + 0x28], 2
mov ecx, esi
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
jmp 0x4c2022
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], 3
jmp 0x4c24a8
mov edx, dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
mov ebx, dword [esp + 0x14]
jmp 0x4c2617
mov ecx, 2
mov edx, 0x5742cc
push 0x5742d4
call fcn.0053c820
add esp, 4
jmp 0x4c21bf
mov dword [esp + 0x28], 0x12
jmp 0x4c2aa0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
call fcn.00486e60
jmp 0x4c2022
movzx eax, bh
cmp eax, 0x7d
jne 0x4c2524
mov dword [esp + 0x28], 0x12
jmp 0x4c25fd
mov dword [esp + 0x28], 7
jmp 0x4c2aa0
mov dword [esp + 0x28], 0x10
jmp 0x4c25fd
movzx eax, bl
cmp eax, 5
jne 0x4c2d4b
mov dword [esp + 0x28], 2
jmp 0x4c2aa0
mov ecx, 3
mov edx, 0x5742cc
push 0x5742d4
call fcn.0053c820
jmp 0x4c2aaf
mov dword [esp + 0x24], ebx
mov ecx, 4
mov edx, 0x5742cc
push 0x5742d4
call fcn.0053c820
add esp, 4
test esi, esi
mov dword [esp + 0xc], eax
jne 0x4c2355
cmp dword [esp + 0x14], 0
je 0x4c25d6
push dword [esp + 0x24]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0xc]
test dword [esp + 0x18], 0x7fffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
je 0x4c2ac8
jmp 0x4c2d76
mov dword [esp + 0x28], 8
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x28]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov cl, 1
mov dword [esp + 0x18], 0
cmp esi, 0x80000002
mov dword [esp + 0xc], eax
jl 0x4c264e
test esi, esi
je 0x4c264e
push dword [esp + 0xa8]
push 0
push dword [0x5970d8]
mov byte [esp + 0x28], cl
call sub.KERNEL32.dll_HeapFree
movzx ecx, byte [esp + 0x1c]
cmp ebx, 0x80000000
je 0x4c26ed
cmp dword [esp + 0x9c], 0
mov byte [esp + 0x1c], cl
mov dword [esp + 0x14], ebx
je 0x4c26c8
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x9c]
lea ebx, [eax + 0x3c]
jmp 0x4c2686
add ebx, 0x48
dec esi
je 0x4c26c8
lea ecx, [ebx - 0x2c]
call fcn.00530f50
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x4c26a9
cmp dword [ebx - 8], 0
je 0x4c26a9
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebx - 4]
cmp eax, 0x80000000
je 0x4c2680
test eax, eax
je 0x4c2680
push dword [ebx]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x4c2680
cmp dword [esp + 0x14], 0
movzx ecx, byte [esp + 0x1c]
je 0x4c26ed
push dword [esp + 0x94]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
movzx ecx, byte [esp + 0x1c]
mov eax, dword [esp + 0x68]
test cl, cl
je 0x4c2714
cmp eax, 0x80000002
jl 0x4c2714
test eax, eax
je 0x4c2714
push dword [esp + 0xa0]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0xb0], 0
sete al
or al, byte [esp + 0x18]
test al, 1
jne 0x4c2754
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4c2754
cmp dword [esp + 0x98], 0
mov dword [esp + 0x14], 0x80000000
je 0x4c275c
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x4c275c
mov dword [esp + 0x14], 0x80000000
mov ebx, dword [esp + 0xc]
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ad0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], ebx
movzx edx, byte [esp + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x104]
mov ebx, dword [esp + 0x98]
cmp ecx, 0x80000000
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x54], dl
mov dword [esp + 0x58], esi
je 0x4c2b63
test esi, esi
jne 0x4c2b79
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
movsd xmm2, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
movsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0xe0], xmm2
movsd qword [esp + 0xd8], xmm1
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0xe8], xmm0
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xc8], xmm2
jmp 0x4c2be0
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x28]
push dword [esi + 0x34]
call fcn.00486e00
add esp, 4
test dword [esp + 0x18], 0x7fffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
jne 0x4c2d76
test edx, edx
mov dword [esp + 0xc], eax
je 0x4c21d3
test ecx, ecx
je 0x4c2ae6
push edx
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov ebx, 0x80000000
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ec0
mov esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ebx
movaps xmm0, xmmword [esp + 0x160]
mov edx, dword [esp + 0x10]
movzx ecx, byte [esp + 0x24]
cmp ebx, 0x80000000
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
movlps qword [esp + 0x38], xmm0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov byte [esp + 0x54], cl
mov dword [esp + 0x58], esi
jne 0x4c2b75
mov ebx, 0x80000000
test esi, esi
je 0x4c2bd8
mov ecx, esi
call fcn.0040a630
jmp 0x4c2bd8
test esi, esi
je 0x4c2b8f
lea ecx, [esp + 0x28]
call fcn.0040a0f0
mov ecx, esi
mov esi, dword [esp + 0x5c]
mov ebx, 0x80000000
jmp 0x4c2be0
lea eax, [esp + 0x30]
movsd xmm2, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
movsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0xe0], xmm2
movsd qword [esp + 0xd8], xmm1
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0xe8], xmm0
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xc8], xmm2
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
cmp ebx, 0x80000000
je 0x4c3001
movsd xmm2, qword [esp + 0xe0]
movsd xmm1, qword [esp + 0xd8]
movsd xmm0, qword [esp + 0xe8]
cmp ebx, 0x80000001
mov dword [esp + 0xc], ecx
movsd qword [esp + 0x120], xmm2
movsd qword [esp + 0x118], xmm1
movsd xmm2, qword [esp + 0xc8]
movsd xmm1, qword [esp + 0xd0]
movsd qword [esp + 0x128], xmm0
movsd qword [esp + 0x110], xmm1
movsd qword [esp + 0x108], xmm2
je 0x4c2eed
mov edx, dword [esp + 0x88]
movsd xmm2, qword [esp + 0x120]
movsd xmm1, qword [esp + 0x118]
lea eax, [esp + 0x138]
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ecx
movsd xmm0, qword [esp + 0x128]
movsd qword [eax + 0x18], xmm2
movsd qword [eax + 0x10], xmm1
movsd xmm2, qword [esp + 0x108]
movsd xmm1, qword [esp + 0x110]
cmp edx, dword [esp + 0x80]
movsd qword [eax + 0x20], xmm0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
jne 0x4c2cd3
lea ecx, [esp + 0x80]
call fcn.004b7010
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
lea ecx, [edx + edx*2]
inc edx
mov dword [esp + 0x14], 0
shl ecx, 4
mov dword [eax + ecx], ebx
mov ebx, dword [esp + 0xc]
mov dword [eax + ecx + 4], ebx
movsd xmm0, qword [esp + 0x108]
movsd xmm1, qword [esp + 0x110]
movsd qword [eax + ecx + 8], xmm0
movsd qword [eax + ecx + 0x10], xmm1
movsd xmm0, qword [esp + 0x118]
movsd qword [eax + ecx + 0x18], xmm0
movsd xmm0, qword [esp + 0x120]
movsd qword [eax + ecx + 0x20], xmm0
movsd xmm0, qword [esp + 0x128]
movsd qword [eax + ecx + 0x28], xmm0
mov dword [esp + 0x88], edx
jmp 0x4c16fa
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
call fcn.00486e60
test dword [esp + 0x18], 0x7fffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
je 0x4c2ac8
mov esi, eax
mov eax, dword [0x5970d8]
sub esp, 0xc
movaps xmm0, xmmword [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 0
movss dword [esp + 8], xmm0
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, esi
test edx, edx
mov dword [esp + 0xc], eax
jne 0x4c2ad4
jmp 0x4c21d3
mov eax, dword [esp + 0xc]
movsd xmm2, qword [esp + 0x120]
movsd xmm1, qword [esp + 0x118]
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0x80000000
movsd xmm0, qword [esp + 0x128]
mov dword [esp + 0x134], eax
movsd qword [ecx + 0x18], xmm2
movsd qword [ecx + 0x10], xmm1
movsd xmm2, qword [esp + 0x108]
movsd xmm1, qword [esp + 0x110]
movsd qword [ecx + 0x20], xmm0
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm2
lea ecx, [esp + 0x130]
call fcn.00561940
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
jmp 0x4c2f1f
movzx eax, bl
cmp eax, 5
jne 0x4c2ecb
mov dword [esp + 0x28], 5
jmp 0x4c2eb7
lea edx, [esp + 0x73]
mov ecx, edi
push 0x5747cc
call fcn.004063e0
add esp, 4
mov esi, eax
jmp 0x4c2f80
mov dword [esp + 0x28], 0x15
jmp 0x4c2e93
movzx eax, bl
cmp eax, 5
jne 0x4c2fa5
mov dword [esp + 0x28], 5
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x28]
push dword [edi + 0x34]
call fcn.00486e00
jmp 0x4c2f8d
movzx eax, bl
cmp eax, 5
jne 0x4c2ecb
mov dword [esp + 0x28], 2
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x28]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
jmp 0x4c2ee9
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], eax
call fcn.00486e60
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov ecx, esi
call fcn.004e66d0
cmp dword [esp + 0x80], 0
je 0x4c2f1a
push esi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov ebx, 0x80000000
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ec0
mov esi, eax
cmp ebx, 0x80000000
je 0x4c2f4d
test esi, esi
jne 0x4c2f5e
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x4c2f9d
test esi, esi
je 0x4c2f58
mov ecx, esi
call fcn.0040a630
mov esi, dword [esp + 0xc]
jmp 0x4c2f80
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
call fcn.004e66d0
test ebx, ebx
je 0x4c2f80
push dword [esp + 0xc]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [edi + 0x30]
mov ecx, esi
push dword [edi + 0x34]
call fcn.0053b8e0
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [ecx + 4], eax
mov dword [ecx], 0x80000000
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x130]
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], eax
call fcn.00486e60
jmp 0x4c2f90
mov dword [esp + 0x28], 0x15
jmp 0x4c2eb7
mov dword [esp + 0x28], 0x12
jmp 0x4c2eb7
mov dword [esp + 0x28], 7
jmp 0x4c2eb7
mov ecx, edi
lea edx, [esp + 0x73]
push 0x574bfc
call fcn.004063e0
add esp, 4
mov ecx, eax
mov edx, dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.0053b8e0
add esp, 4
jmp 0x4c2ee9