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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, ecx
lea ecx, [esp + 0xb8]
mov edi, edx
call 0x5141bf
pop ebx
call fcn.00405a30
cmp byte [esp + 0xb8], 0
je 0x5141e4
mov eax, dword [esp + 0xbc]
mov dword [esi], eax
mov byte [esi + 0x4c], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + 0xb9], 0
je 0x514248
cmp byte [esp + 0xba], 0x6e
jne 0x514248
cmp byte [edi + 0x3c], 0
movzx ebx, byte [edi + 0x3d]
mov byte [edi + 0x3c], 0
je 0x51422d
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x51422d
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x514223
lea ecx, [edi + 0xc]
call fcn.004b76f0
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bl
inc eax
mov dword [edi + 0x14], eax
mov ecx, edi
mov edx, 0x58023f
push 3
call fcn.004017c0
add esp, 4
test eax, eax
jne 0x5141d6
mov byte [esi + 0x4c], 3
jmp 0x5141dc
mov dword [esp + 0x50], esi
lea eax, [edi + 0xc]
lea ecx, [edi + 0x18]
mov esi, 0x800013
mov dword [esp + 0x90], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
jmp 0x51427a
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x5142a0
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x514308
jmp 0x51434b
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x5142d6
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.00551930
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x51433c
cmp eax, 5
je 0x514d5b
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x5142f6
jmp 0x514d4f
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 0x5142f3
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 0x51434b
bt esi, ecx
jae 0x51434b
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x51427a
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x514270
mov ecx, dword [esp + 0x3c]
call fcn.004b76f0
mov eax, dword [edi + 0x14]
jmp 0x514270
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x5142e9
jmp 0x5142f3
cmp bh, 0x5b
je 0x514913
mov esi, dword [esp + 0x50]
cmp eax, 0x7b
jne 0x514db6
dec byte [edi + 0x40]
je 0x514d30
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x514397
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x51438c
mov ecx, dword [esp + 0x3c]
call fcn.004b76f0
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x7b
inc eax
mov dword [edi + 0x14], eax
mov esi, 0x800013
xor ebx, ebx
mov byte [esp + 0xb], 3
mov dword [esp + 0x74], 0
mov byte [esp + 0x17], 3
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
jmp 0x5143ea
cmp byte [edi + 0x3c], 0
je 0x514410
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
jbe 0x51447c
jmp 0x5144ca
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x51444a
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.00551930
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x5144bb
cmp eax, 5
je 0x514e52
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x51446a
jmp 0x514e46
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 0x514467
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
ja 0x5144ca
mov eax, dword [ecx*4 + 0x5156bc]
add eax, dword [esp + 0x90]
jmp eax
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x51445d
jmp 0x514467
cmp eax, 0x7d
je 0x514a6c
test byte [esp + 0x2c], 1
jne 0x5151e4
cmp bh, 0x22
jne 0x51513e
mov byte [edi + 0x3c], 0
mov ebx, dword [esp + 0x90]
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x51451b
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x514510
mov ecx, dword [esp + 0x3c]
call fcn.004b76f0
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 + 0x3c]
mov dword [edi + 8], 0
lea ecx, [esp + 0x18]
push edi
call fcn.0055a7b0
add esp, 4
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 2
je 0x515200
lea ecx, [esp + 0x34]
push dword [esp + 0x20]
call fcn.00538c70
add esp, 4
cmp byte [esp + 0x34], 0
jne 0x514dd3
movzx eax, byte [esp + 0x35]
cmp eax, 5
jbe 0x5145c9
mov ecx, edi
call fcn.00406f10
test eax, eax
jne 0x5151fe
mov ecx, edi
call fcn.004021f0
mov bl, 1
test eax, eax
je 0x5143d6
jmp 0x5151fe
mov eax, dword [eax*4 + 0x51574c]
add eax, ebx
jmp eax
dec byte [edi + 0x40]
mov esi, dword [esp + 0x50]
je 0x514d30
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x51494d
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x514942
mov ecx, dword [esp + 0x3c]
call fcn.004b76f0
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x5b
inc eax
mov dword [edi + 0x14], eax
mov esi, 0x800013
mov dword [esp + 0x60], edi
jmp 0x51496a
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x514990
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x5149f8
jmp 0x514a3b
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x5149c6
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.00551930
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x514a2c
cmp eax, 5
je 0x514e27
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x5149e6
jmp 0x514e1b
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 0x5149e3
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 0x514a3b
bt esi, ecx
jae 0x514a3b
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x51496a
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x514960
mov ecx, dword [esp + 0x3c]
call fcn.004b76f0
mov eax, dword [edi + 0x14]
jmp 0x514960
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x5149d9
jmp 0x5149e3
cmp eax, 0x5d
je 0x514ddc
lea ecx, [esp + 0x18]
mov edx, edi
mov byte [esp + 0x64], 0
call fcn.0053a000
cmp dword [esp + 0x18], 0
je 0x514b6b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x514f8f
cmp dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x30]
mov eax, 0x3f800000
cmove ecx, eax
mov dword [esp + 0x30], ecx
jne 0x514a94
movss xmm0, dword [0x56ed70]
movss dword [esp + 0x8c], xmm0
mov ecx, dword [esp + 0x10]
movaps xmm0, xmmword [esp + 0xc0]
mov esi, dword [esp + 0x44]
movzx eax, byte [esp + 0x17]
je 0x514bb3
mov bh, 2
cmp al, 3
jne 0x514bc4
cmp dword [esp + 0x80], 0
jne 0x514ad4
movss xmm1, dword [0x56ed70]
movss dword [esp + 0x88], xmm1
movzx edx, byte [esp + 0xb]
mov bl, 2
movaps xmmword [esp + 0xc0], xmm0
cmp dl, 3
je 0x514afd
movzx eax, byte [esp + 0x62]
mov bl, dl
mov byte [esp + 0x1a], al
movzx eax, word [esp + 0x60]
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x74]
movzx edx, byte [esp + 0x36]
test eax, eax
mov byte [esp + 0xa2], dl
cmove ecx, eax
movzx eax, word [esp + 0x34]
cmp dword [esp + 0x84], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
mov word [esp + 0xa0], ax
movzx eax, word [esp + 0x18]
mov word [esp + 0x9c], ax
mov eax, 0x3f800000
cmove ecx, eax
cmove esi, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], esi
cmove ecx, eax
mov dword [esp + 0x4c], ecx
movzx ecx, byte [esp + 0x1a]
mov byte [esp + 0x9e], cl
jmp 0x515290
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x20]
movss xmm1, dword [esp + 0x28]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x2c], eax
movaps xmmword [esp + 0xc0], xmm0
movss dword [esp + 0x8c], xmm1
call fcn.0040ae10
movzx eax, byte [esp + 0x28]
cmp al, 4
jne 0x514bee
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x514f8f
movaps xmm0, xmmword [0x56ed80]
mov bh, 2
cmp al, 3
je 0x514ab9
mov edx, eax
movzx eax, byte [esp + 0x4a]
mov bh, dl
mov byte [esp + 0x36], al
movzx eax, word [esp + 0x48]
mov word [esp + 0x34], ax
cmp dword [esp + 0x80], 0
je 0x514ac3
jmp 0x514ad4
cmp al, 3
je 0x515115
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
movzx esi, word [esp + 0x29]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0xc]
lea ecx, [ebx + 0x18]
mov word [esp + 0x48], si
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
movzx eax, byte [esp + 0x2b]
mov byte [esp + 0x4a], al
jmp 0x514c5c
cmp byte [ebx + 0x3c], 0
je 0x514c70
mov ch, byte [ebx + 0x3d]
jmp 0x514cd1
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x24], eax
jne 0x514caa
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.00551930
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x514d21
cmp eax, 5
je 0x5151be
mov ecx, dword [esp + 0x18]
cmp cl, 4
je 0x514cca
jmp 0x5151b2
mov ecx, dword [ebx + 0x18]
mov ch, byte [ecx + eax]
inc eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x34]
inc eax
cmp ch, 0xa
jne 0x514cc7
add dword [ebx + 0x38], eax
inc dword [ebx + 0x30]
mov ch, 0xa
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x3c], 1
mov byte [ebx + 0x3d], ch
movzx eax, ch
mov esi, ecx
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x514e63
mov eax, dword [ecx*4 + 0x515764]
add eax, dword [esp + 0x90]
jmp eax
mov ch, byte [esp + 0x19]
mov eax, dword [ebx + 0x34]
inc eax
cmp ch, 0xa
je 0x514cbd
jmp 0x514cc7
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 0x15
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.004871f0
add esp, 4
jmp 0x5141d6
movzx eax, bl
cmp eax, 5
jne 0x514e01
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 5
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.004871f0
jmp 0x515438
mov ecx, edi
lea edx, [esp + 0xa3]
push 0x56f98c
call fcn.00406030
add esp, 4
mov ecx, eax
jmp 0x51542d
mov edx, dword [esp + 0x38]
jmp 0x515200
mov dword [esp + 0x44], 0
xor ecx, ecx
mov edx, 0x56f6d4
push 0x56f234
call fcn.0055a700
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x514f97
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00487250
jmp 0x51543b
movzx eax, bl
cmp eax, 5
jne 0x515055
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 2
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.004871f0
add esp, 4
jmp 0x514a63
movzx eax, bl
cmp eax, 5
jne 0x514f1a
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 3
jmp 0x514efd
cmp eax, 0x5d
je 0x5151cb
cmp byte [esp + 0x64], 0
mov ecx, esi
je 0x5151a5
mov byte [esp + 0x64], 0
cmp ch, 0x5d
je 0x515131
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.0053a0e0
cmp dword [esp + 0x18], 0
je 0x514eae
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov bh, byte [esp + 0x30]
jmp 0x514f71
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.0040fe70
mov eax, dword [esp + 0x18]
mov bh, byte [esp + 0x30]
cmp eax, 2
jne 0x514f34
mov eax, dword [esp + 0x1c]
jmp 0x514f69
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.004871f0
add esp, 4
mov edx, eax
mov eax, dword [esp + 0xc]
jmp 0x515208
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00487250
jmp 0x5151fe
test eax, eax
je 0x515470
movss xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
movss dword [esp + 0x88], xmm0
call fcn.0040ae10
mov bl, byte [esp + 0x28]
cmp bl, 4
jne 0x51506f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x514f8f
test eax, eax
je 0x514f8f
cmp dword [esp + 0x5c], 0
je 0x514f8f
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov dword [esp + 0x44], 0
mov bl, 3
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ec0
mov ecx, eax
cmp bl, 3
je 0x514fc5
test ecx, ecx
jne 0x514fd2
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x98]
jmp 0x5152bf
test ecx, ecx
jne 0x515047
mov ecx, dword [esp + 0x2c]
jmp 0x51542d
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x514ff8
test eax, eax
je 0x514ff8
cmp dword [esp + 0x5c], 0
je 0x514ff8
push eax
push 0
push dword [0x5920d8]
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
mov esi, dword [esp + 0x10]
cmp bl, 2
je 0x515024
cmp dword [esp + 0x40], 0
je 0x515024
cmp dword [esp + 0x58], 0
je 0x515024
push dword [esp + 0x40]
push 0
push dword [0x5920d8]
mov ebx, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, ebx
test esi, esi
je 0x51542d
cmp dword [esp + 0x68], 0
je 0x51542d
push esi
push 0
push dword [0x5920d8]
mov esi, ecx
jmp 0x515426
call fcn.0040a690
mov ecx, dword [esp + 0x2c]
jmp 0x51542d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00487250
jmp 0x514a63
cmp bl, 3
je 0x5154d1
mov eax, dword [esp + 0x18]
movzx edx, byte [esp + 0x2b]
movzx ecx, word [esp + 0x29]
mov esi, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x36], dl
mov word [esp + 0x34], cx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x58], esi
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.0040e9f0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x515160
cmp eax, 2
jne 0x5154ed
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bl, 2
je 0x514f71
cmp dword [esp + 0x40], 0
je 0x514f71
cmp dword [esp + 0x58], 0
je 0x514f6d
push dword [esp + 0x40]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x514f6d
mov ecx, 1
mov edx, 0x56f6d4
push 0x56f234
call fcn.0055a700
add esp, 4
jmp 0x514baa
mov dword [esp + 0x18], 0x12
jmp 0x515688
movzx eax, bh
cmp eax, 0x7d
jne 0x515153
mov dword [esp + 0x18], 0x12
jmp 0x5151ec
mov dword [esp + 0x18], 0x10
jmp 0x5151ec
mov eax, dword [esp + 0x1c]
movzx esi, word [esp + 0x48]
mov ch, byte [esp + 0x4a]
movzx edx, word [esp + 0x34]
mov cl, byte [esp + 0x36]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov word [esp + 0x98], si
mov byte [esp + 0x9a], ch
mov word [esp + 0x94], dx
mov byte [esp + 0x96], cl
mov dword [esp + 0x68], eax
jmp 0x514f99
mov dword [esp + 0x18], 7
jmp 0x515688
movzx eax, cl
cmp eax, 5
jne 0x51569f
mov dword [esp + 0x18], 2
jmp 0x515688
mov ecx, 2
mov edx, 0x56f6d4
push 0x56f234
call fcn.0055a700
jmp 0x515697
mov dword [esp + 0x18], 8
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.004871f0
add esp, 4
mov edx, eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
movzx ecx, byte [esp + 0xb]
cmp dword [esp + 0x74], 0
je 0x515239
test esi, esi
je 0x515239
cmp dword [esp + 0x68], 0
je 0x515239
push esi
push 0
push dword [0x5920d8]
mov esi, edx
mov ebx, ecx
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov edx, esi
and cl, 0xfe
mov dword [esp + 0x30], edx
cmp cl, 2
je 0x515268
cmp dword [esp + 0x40], 0
je 0x515268
cmp dword [esp + 0x58], 0
je 0x515268
push dword [esp + 0x40]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x17]
and cl, 0xfe
cmp cl, 2
je 0x51528e
test eax, eax
je 0x51528e
cmp dword [esp + 0x5c], 0
je 0x51528e
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov bl, 3
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ad0
mov esi, eax
cmp bl, 3
je 0x5153b1
test esi, esi
jne 0x5153c6
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa0]
movzx edx, word [eax]
mov esi, dword [esp + 0x50]
movaps xmm0, xmmword [esp + 0xc0]
movzx eax, byte [eax + 2]
mov dword [esi], edi
mov word [esp + 0x6c], dx
movlps qword [esi + 4], xmm0
movss xmm0, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
mov edi, esi
mov byte [esp + 0x6e], al
movzx eax, byte [esp + 0x6e]
movss dword [esi + 0xc], xmm0
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x68]
movss xmm0, dword [esp + 0x88]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0xac]
movss dword [esi + 0x24], xmm0
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0xb0]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x34], edx
movzx edx, word [ecx]
movzx ecx, byte [ecx + 2]
mov byte [esi + 0x38], bh
mov word [esp + 0x70], dx
mov byte [esp + 0x72], cl
mov word [esp + 0xb4], dx
mov byte [esp + 0xb6], cl
movzx esi, word [esp + 0x70]
mov ch, byte [esp + 0x72]
mov word [edi + 0x39], si
mov esi, dword [esp + 0xa4]
mov byte [edi + 0x3b], ch
mov dword [edi + 0x40], esi
mov esi, dword [esp + 0xa8]
mov dword [edi + 0x3c], esi
mov esi, dword [esp + 0x40]
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x58]
mov dword [edi + 0x48], esi
mov byte [edi + 0x4c], bl
movzx ebx, word [esp + 0x6c]
mov byte [edi + 0x4f], al
mov word [edi + 0x4d], bx
jmp 0x5141dc
mov ecx, dword [esp + 0x30]
test esi, esi
je 0x51542d
mov ecx, esi
call fcn.0040a690
mov ecx, dword [esp + 0x30]
jmp 0x51542d
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x5153e8
test eax, eax
je 0x5153e8
cmp dword [esp + 0x5c], 0
je 0x5153e8
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
cmp bl, 2
je 0x51540c
cmp dword [esp + 0x40], 0
je 0x51540c
cmp dword [esp + 0x58], 0
je 0x51540c
push dword [esp + 0x40]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0x10], 0
je 0x51542b
cmp dword [esp + 0x68], 0
je 0x51542b
push dword [esp + 0x10]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
mov edx, dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.00559760
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov byte [ecx + 0x4c], 4
jmp 0x5141dc
mov ecx, 3
jmp 0x5154d6
mov ecx, 4
mov edx, 0x56f6d4
push 0x56f234
call fcn.0055a700
add esp, 4
jmp 0x514f69
mov ecx, 5
mov edx, 0x56f6d4
push 0x56f234
call fcn.0055a700
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bl, 2
je 0x514f71
jmp 0x5150e9
mov edx, dword [ebx + 0x30]
lea ecx, [esp + 0x18]
push dword [ebx + 0x34]
call fcn.004871f0
add esp, 4
jmp 0x514e9d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
call fcn.00487250
jmp 0x514e9d