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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x104
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0x80000000
mov dword [esp + 0x90], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x8c], ebx
lea ecx, [eax + eax*8]
lea esi, [ecx + ecx*2]
add esi, ebx
add esi, eax
test eax, eax
je 0x501efc
mov ecx, ebx
lea ebx, [esp + 0xec]
xor edi, edi
mov ebp, 4
mov dword [esp + 0x54], esi
mov eax, ecx
jmp 0x5016b7
push dword [esp + 0x24]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0x74]
call fcn.004741a0
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x501f55
lea ecx, [eax + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax]
cmp ecx, 8
je 0x501f00
mov dword [esp + 0xe8], ecx
lea ecx, [esp + 0x58]
lea edx, [esp + 0xe8]
movsd xmm0, qword [eax + 0x14]
movsd qword [ebx + 0x10], xmm0
movsd xmm0, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
call fcn.00502460
movsd xmm2, qword [esp + 0x58]
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x60]
movsd qword [esp + 0x74], xmm2
mov dword [esp + 0x24], eax
movsd qword [esp + 0x84], xmm0
movsd qword [esp + 0x7c], xmm1
mov eax, dword [esp + 0x74]
cmp eax, 6
je 0x501840
cmp eax, 1
je 0x501d60
test eax, eax
je 0x501690
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], 0x80000000
cmp eax, 0x80000000
mov dword [esp + 0xc], ecx
je 0x5017df
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp]
lea edx, [esp + 0xb4]
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0x58]
call fcn.004fa2a0
cmp edi, dword [esp + 0x10]
jne 0x5017a6
lea ecx, [esp + 0x10]
mov edx, edi
call fcn.004fa940
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
lea eax, [edi + edi*8]
lea eax, [eax + eax*2]
add eax, edi
inc edi
mov dword [ebp + eax + 0x18], ecx
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [ebp + eax + 8], xmm1
movsd qword [ebp + eax], xmm0
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x10]
jne 0x5017f8
lea ecx, [esp + 0x10]
mov edx, edi
call fcn.004fa940
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x74]
movsd xmm1, qword [esp + 0x7c]
movsd xmm2, qword [esp + 0x84]
mov ecx, dword [esp + 0x24]
lea eax, [edi + edi*8]
lea eax, [eax + eax*2]
add eax, edi
inc edi
movsd qword [ebp + eax + 0x10], xmm2
movsd qword [ebp + eax + 8], xmm1
movsd qword [ebp + eax], xmm0
mov dword [ebp + eax + 0x18], ecx
mov dword [esp + 0x18], edi
jmp 0x5016ab
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ebp
lea ecx, [eax + eax*8]
lea edx, [ecx + ecx*2]
add edx, ebp
add edx, eax
test eax, eax
mov dword [esp + 0x30], edx
je 0x501df0
mov ebx, dword [esp]
add ebp, 0x1c
jmp 0x5018e1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
lea eax, [edi + edi*8]
mov ebx, dword [esp]
lea eax, [eax + eax*2]
add eax, edi
inc edi
mov dword [edx + eax], esi
mov dword [edx + eax + 4], ecx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov dword [edx + eax + 8], ecx
movsd xmm0, qword [esp + 0xa8]
movsd qword [edx + eax + 0xc], xmm0
mov ecx, dword [esp + 0xb0]
mov dword [edx + eax + 0x14], ecx
mov dword [edx + eax + 0x18], esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x48]
add ebp, 0x1c
add eax, 0x1c
cmp eax, dword [esp + 0x30]
je 0x501e48
mov esi, dword [ebp - 0x1c]
cmp esi, 8
je 0x501df3
mov dword [esp], ebx
mov ebx, edi
lea edi, [ebp - 0x1c]
lea eax, [esp + 0xd0]
movsd xmm0, qword [edi + 0x14]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [edi + 4]
movsd xmm1, qword [edi + 0xc]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xcc], 0
mov dword [esp + 8], eax
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x50195d
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x502414
mov dword [0x5a1188], eax
push 0x34
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x502414
movaps xmm0, xmmword [0x5393f0]
mov dword [esp + 0x48], edi
lea edi, [esp + 0xcc]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 1
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x2c], 0
mov word [eax + 0x30], 1
mov byte [eax + 0x32], 0
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0xe4], eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xd0]
mov eax, dword [ecx + 0x10]
movsd xmm0, qword [ecx + 8]
mov ecx, edi
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm0
call fcn.004fa4d0
mov ecx, edi
call fcn.004741a0
push dword [esp + 0xe4]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp esi, 1
jne 0x501a90
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 8]
mov edi, ebx
cmp eax, 0x80000000
jne 0x501b00
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test edx, edx
je 0x501bd9
js 0x50242d
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x501a70
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov edx, dword [esp + 8]
test eax, eax
je 0x502423
mov dword [0x5a1188], eax
push edx
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [esp + 8]
test eax, eax
jne 0x501bde
jmp 0x502423
mov eax, dword [esp + 0xa4]
movsd xmm0, qword [esp + 0x9c]
mov edi, ebx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x34]
movsd qword [esp + 0xa8], xmm0
mov dword [esp + 0x34], 0x80000000
cmp eax, 0x80000000
je 0x501d1a
mov ebx, dword [esp]
mov dword [esp + 4], edi
cmp eax, ebx
jbe 0x501b5a
mov eax, dword [0x5a1188]
test ebx, ebx
je 0x501c11
push ebx
push dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
test eax, eax
jne 0x501b66
jmp 0x502432
mov ebx, dword [esp]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub eax, ebx
cmp eax, edx
jb 0x501d38
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
add eax, ebx
push edx
push dword [esp + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x14]
add esp, 0xc
add ebx, eax
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x501b47
push dword [esp + 0x20]
push 0
push dword [0x5a1188]
call esi
push dword [esp + 0x44]
push 0
push dword [0x5a1188]
call esi
jmp 0x5018cd
test ebx, ebx
je 0x501c1e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], eax
mov edx, eax
push ebx
call fcn.004586f0
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x501ba4
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x502414
mov dword [0x5a1188], eax
push 0x34
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x502414
cmp dword [esp + 0x2c], 0
mov edi, eax
mov cl, 1
mov edx, ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x98], ebx
sete al
jmp 0x501c64
mov eax, 1
push edx
push dword [esp + 0x24]
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x38], ebx
mov ebx, eax
test eax, eax
mov dword [esp + 0x3c], ebx
jne 0x501b39
jmp 0x501b47
push dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x501c41
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x502414
mov dword [0x5a1188], eax
push 0x34
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x502414
mov edi, eax
mov al, 1
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x2c], 0
mov dword [edi], 1
mov dword [edi + 4], edx
mov dword [edi + 8], 1
mov dword [edi + 0xc], edx
mov edx, dword [esp + 4]
mov dword [edi + 0x10], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], al
mov byte [edi + 0x31], cl
mov byte [edi + 0x32], cl
cmp edx, dword [esp + 0x10]
jne 0x501cd5
lea ecx, [esp + 0x10]
call fcn.004fa940
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x501cd9
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + edx*8]
lea eax, [eax + eax*2]
add eax, edx
inc edx
mov dword [ebx + eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [ebx + eax + 4], ecx
mov ecx, dword [esp + 0x98]
mov dword [ebx + eax + 8], ecx
movsd xmm0, qword [esp + 0x58]
movsd qword [ebx + eax + 0xc], xmm0
mov ecx, dword [esp + 0x60]
mov dword [ebx + eax + 0x14], ecx
mov dword [ebx + eax + 0x18], edi
mov edi, edx
mov dword [esp + 0x18], edx
cmp edi, dword [esp + 0x10]
jne 0x501880
lea ecx, [esp + 0x10]
mov edx, edi
call fcn.004fa940
mov edi, dword [esp + 0x18]
jmp 0x501880
mov edx, ebx
lea ecx, [esp + 0x34]
push dword [esp + 8]
call fcn.0052fcb0
mov edx, dword [esp + 0xc]
add esp, 4
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jmp 0x501b17
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
jne 0x501dc3
test esi, esi
je 0x501e64
js 0x50242d
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x501dac
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x50243e
mov dword [0x5a1188], eax
push esi
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
jne 0x501e69
jmp 0x50243e
sub eax, dword [esp]
cmp eax, esi
jb 0x501ee0
mov eax, dword [esp + 0x38]
mov ebp, dword [esp]
mov dword [esp + 0xc], eax
add eax, ebp
push esi
push dword [esp + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebp, esi
jmp 0x501e87
mov ebx, dword [esp]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x30]
mov ecx, 0x24924925
mov eax, edi
sub eax, ebp
shr eax, 2
mul ecx
cmp edi, ebp
je 0x501e44
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, edx
nop dword [eax + eax]
mov ecx, ebp
call fcn.004fa4d0
mov ecx, ebp
call fcn.004741a0
push dword [ebp + 0x18]
push 0
push dword [0x5a1188]
call ebx
add ebp, 0x1c
dec esi
jne 0x501e20
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp dword [esp + 0x94], 0
mov dword [esp], ebx
lea ebx, [esp + 0xec]
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jne 0x501e98
jmp 0x501ea6
mov eax, 1
push esi
push dword [esp + 0x2c]
push eax
mov ebp, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x34], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x38], ebp
mov ebp, esi
test esi, esi
mov dword [esp], ebp
mov dword [esp + 0x3c], ebp
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
je 0x501ea6
push dword [esp + 0x28]
push 0
push dword [0x5a1188]
call ebp
mov esi, dword [esp + 0x74]
push dword [esp + 0x24]
push 0
push dword [0x5a1188]
call ebp
cmp esi, 6
je 0x501ed3
cmp esi, 1
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x1c]
je 0x5016ab
jmp 0x5016a2
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x1c]
jmp 0x5016ab
mov edx, dword [esp]
lea ecx, [esp + 0x34]
push esi
call fcn.0052fcb0
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
jmp 0x501dce
xor edi, edi
jmp 0x501f04
mov ebx, dword [esp + 0x40]
mov eax, esi
mov ecx, 0x24924925
sub eax, ebx
shr eax, 2
mul ecx
cmp esi, ebx
mov eax, esi
je 0x501f55
mov dword [esp + 4], edi
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, edx
nop word cs:[eax + eax]
nop
mov ecx, ebx
call fcn.004fa4d0
mov ecx, ebx
call fcn.004741a0
push dword [ebx + 0x18]
push 0
push dword [0x5a1188]
call edi
add ebx, 0x1c
dec esi
jne 0x501f30
mov edi, dword [esp + 4]
cmp dword [esp + 0x90], 0
je 0x501f74
push dword [esp + 0x8c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
je 0x501ffd
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0xc0]
call fcn.004fa2a0
cmp edi, dword [esp + 0x10]
jne 0x501fc1
lea ecx, [esp + 0x10]
mov edx, edi
call fcn.004fa940
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
lea ecx, [edi + edi*8]
lea ecx, [ecx + ecx*2]
add ecx, edi
inc edi
mov dword [eax + ecx + 0x18], edx
movsd xmm0, qword [esp + 0x68]
movsd qword [eax + ecx + 0x10], xmm0
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [esp + 0x18], edi
cmp edi, 1
je 0x5020ae
test edi, edi
jne 0x5020f5
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x502031
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x502414
mov dword [0x5a1188], eax
push 0x34
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x502414
movaps xmm0, xmmword [0x5393f0]
mov ecx, dword [esp + 0x4c]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 1
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x2c], 0
mov word [eax + 0x30], 1
mov byte [eax + 0x32], 0
mov dword [ecx], 0
mov dword [ecx + 0x18], eax
cmp dword [esp + 0x10], 0
je 0x502409
mov eax, dword [esp + 0x14]
jmp 0x5020e1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
cmp ecx, 8
je 0x50244a
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
movsd xmm0, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
movsd qword [edx + 4], xmm0
movsd qword [edx + 0xc], xmm1
movsd xmm0, qword [eax + 0x14]
movsd qword [edx + 0x14], xmm0
push eax
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x502409
mov edx, dword [esp + 0x14]
lea eax, [edi + edi*8]
xor ebp, ebp
mov dword [esp + 4], edi
mov dword [esp + 0x2c], 0
mov dword [esp], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0
mov dword [esp + 8], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [eax + eax*2]
lea esi, [eax + edi]
mov dword [esp + 0x24], eax
mov al, 1
mov dword [esp + 0x48], eax
mov al, 1
lea ecx, [edx + esi]
lea ebx, [edx + 0x18]
mov dword [esp + 0x30], eax
mov al, 1
mov dword [esp + 0x50], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
jmp 0x502187
mov dword [esp + 0x20], 0
or ebp, dword [eax + 0x18]
add ebx, 0x1c
add esi, 0xffffffe4
je 0x5022af
mov eax, dword [ebx]
cmp byte [esp + 0x48], 0
je 0x5021a0
movzx ecx, byte [eax + 0x30]
mov dword [esp + 0x48], ecx
jmp 0x5021a8
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x44]
mov edi, 0xffffffff
add ecx, dword [eax + 0x2c]
cmovb ecx, edi
cmp dword [esp + 8], 0
mov dword [esp + 0x44], ecx
je 0x502220
cmp dword [eax + 0x10], 0
mov dword [esp + 8], 0
je 0x5021eb
mov ecx, dword [esp + 0x40]
mov edx, 0xffffffff
mov dword [esp + 8], 1
add ecx, dword [eax + 0x14]
cmovb ecx, edx
mov dword [esp + 0x40], ecx
cmp byte [esp + 0x30], 0
je 0x50222f
movzx ecx, byte [eax + 0x31]
mov dword [esp + 0x30], ecx
cmp byte [esp + 0xc], 0
je 0x50223e
movzx ecx, byte [eax + 0x32]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
cmp dword [esp], 1
je 0x502250
mov dword [esp], 0
jmp 0x502275
mov dword [esp + 8], 0
cmp byte [esp + 0x30], 0
jne 0x5021f2
mov dword [esp + 0x30], 0
cmp byte [esp + 0xc], 0
jne 0x502201
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x1c]
cmp dword [esp], 1
jne 0x502213
cmp dword [eax], 0
mov dword [esp], 0
je 0x502275
mov ecx, dword [esp + 0x2c]
mov dword [esp], 1
add ecx, dword [eax + 4]
cmovb ecx, edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x20], 1
jne 0x502170
cmp dword [eax + 8], 0
mov dword [esp + 0x20], 0
je 0x502178
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
setae dl
mov dword [esp + 0x20], edx
jmp 0x502178
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x24], 0
add edi, dword [esp + 4]
nop word cs:[eax + eax]
nop
test edi, edi
je 0x5022f7
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x24]
or edx, dword [eax + 0x1c]
or ebx, dword [eax + 0x24]
cmp dword [eax + 8], 0
mov dword [esp + 0x24], edx
je 0x5022f7
add esi, 0x1c
add edi, 0xffffffe4
cmp dword [eax + 0xc], 0
je 0x5022d0
imul eax, dword [esp + 4], 0xffffffe4
xor esi, esi
mov dword [esp + 4], 0
nop word cs:[eax + eax]
test eax, eax
je 0x502343
mov edi, ebx
mov ebx, ebp
mov edx, ecx
mov ecx, dword [ecx - 4]
mov ebp, dword [esp + 4]
or ebp, dword [ecx + 0x28]
or esi, dword [ecx + 0x20]
cmp dword [ecx + 8], 0
mov dword [esp + 4], ebp
je 0x502368
add edx, 0xffffffe4
add eax, 0x1c
cmp dword [ecx + 0xc], 0
mov ebp, ebx
mov ebx, edi
mov ecx, edx
je 0x502310
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x50237c
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x502414
mov dword [0x5a1188], eax
jmp 0x50237c
mov ebp, ebx
mov ebx, edi
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
je 0x502353
push 0x34
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x502414
mov ecx, dword [esp]
mov edx, dword [esp + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x48]
mov byte [eax + 0x30], cl
mov ecx, dword [esp + 0x30]
mov byte [eax + 0x31], cl
mov ecx, dword [esp + 0xc]
mov byte [eax + 0x32], cl
mov ecx, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov dword [edx + 0xc], ecx
movsd qword [edx + 4], xmm0
mov dword [edx], 6
mov dword [edx + 0x18], eax
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 0x34
call fcn.00531970
mov ecx, 1
call fcn.00531970
call fcn.004478d0
mov ecx, 1
mov edx, ebx
call fcn.00531970
mov ecx, 1
mov edx, esi
call fcn.00531970
mov ecx, 0x59e39c
mov edx, 0x2b
push 0x55df90
call fcn.00532d60
int3