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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [esp + 0x94]
mov ecx, dword [0x567b10]
xor ecx, esp
mov dword [esp + 0x7c], ecx
mov esi, 2
cmp dword [eax], 0xf265
jne 0x521f64
mov edx, dword [eax + 0xc]
cmp dword [edx], 0xd245
jne 0x521f64
test byte [edx + 0x28], 4
jne 0x521f64
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
mov esi, eax
and esi, 7
mov dword [esp + 8], esi
cmp dword [edx + 0x1c], 0x20
mov dword [esp + 0x14], edx
jg 0x520f6b
mov edi, dword [edx + 0x20]
xor esi, esi
test byte [edx + 0x18], 4
mov edx, dword [edx + 0x24]
mov dword [esp + 0xc], edx
cmove esi, ecx
mov dword [esp + 0x34], esi
test al, 4
mov dword [esp + 4], edi
jne 0x520f9a
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, ebp
jmp 0x520fa8
mov esi, dword [edx + 0x20]
mov dword [esp + 0x1c], esi
xor esi, esi
test byte [edx + 0x18], 4
mov ebx, dword [edx + 0x24]
cmove esi, ecx
mov dword [esp + 0x30], esi
test al, 4
jne 0x521562
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, ebp
jmp 0x521572
mov eax, dword [esp + 0xa0]
mov edi, dword [eax]
add edi, ebp
mov eax, dword [eax + 4]
add eax, ebp
mov esi, 0x10
mov ebx, eax
sub ebx, edi
mov ecx, dword [esp + 0x14]
jb 0x521f64
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x3c]
test ebp, ebp
je 0x521023
mov esi, edi
mov eax, dword [esp + 0x18]
cmp edi, eax
jae 0x52101b
mov cl, byte [ebp]
mov esi, edi
mov byte [esp], cl
jmp 0x520ff0
add esi, 1
add ebx, 0xffffffff
cmp dword [esp + 0x18], esi
je 0x521c38
cmp byte [esi], cl
jne 0x520fe0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
cmp ebx, eax
jl 0x520fe0
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memcmp
movzx ecx, byte [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x520fe0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, eax
je 0x521c38
mov edx, dword [esp + 4]
add edx, 1
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov eax, 1
mov ecx, edx
shl eax, cl
mov dword [esp + 0x40], eax
mov esi, 1
mov eax, dword [esp + 0xc]
mov ecx, eax
shl esi, cl
mov dword [esp + 0x2c], esi
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
mov ebx, edi
mov dword [esp + 4], edx
cmp edi, ebx
mov edi, ebx
je 0x521099
movsx ecx, byte [edi - 1]
mov dword [esp + 0x10], ecx
jmp 0x5210a1
mov dword [esp + 0x10], 0x80
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x40]
push esi
push 0x84
push esi
push eax
call fcn.00522b90
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x38], esi
cmp edi, dword [esp + 0x3c]
je 0x5210f0
nop dword [eax]
movsx edx, byte [edi]
jmp 0x5210f5
mov edx, 0x80
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x20], eax
cmp eax, esi
cmove ebx, edi
xor eax, eax
mov dword [esp], 0x82
mov ecx, dword [esp + 0x10]
cmp ecx, 0x80
mov dword [esp + 0x1c], ebx
je 0x521130
cmp ecx, 0xa
jne 0x521170
test byte [ebp + 0x18], 8
mov ebx, 0
jne 0x52113c
jmp 0x52114b
mov ebx, 0
test byte [esp + 0x30], 1
jne 0x52114b
mov ebx, dword [ebp + 0x2c]
mov eax, 0x81
mov dword [esp], 0x83
cmp edx, 0x80
je 0x52117a
cmp edx, 0xa
jne 0x52115e
test byte [ebp + 0x18], 8
jne 0x521181
mov dword [esp], eax
jmp 0x521184
xor ebx, ebx
cmp edx, 0x80
jne 0x521153
test byte [esp + 0x30], 2
jne 0x52115e
add ebx, dword [ebp + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0x20], edi
test ebx, ebx
jle 0x5211d0
add ebx, 1
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
mov edi, dword [esp]
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, esi
mov edx, dword [esp + 4]
push eax
push edi
push eax
push ebp
call fcn.00522b90
add esp, 0x10
add ebx, 0xffffffff
cmp ebx, 1
jg 0x5211b0
jmp 0x5211d3
mov edi, dword [esp]
cmp edi, 0x81
mov esi, eax
jne 0x521200
mov ebx, 0x81
mov ecx, dword [esp + 8]
cmp ecx, 0x80
mov ebp, dword [esp + 0x24]
jne 0x521257
jmp 0x521278
mov eax, dword [esp + 0x10]
cmp eax, 0x80
mov ebp, dword [esp + 0x24]
jne 0x521220
mov ebx, edi
jmp 0x5212d0
movzx ecx, al
mov dword [esp + 0x28], ecx
push ecx
mov edi, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
mov ecx, dword [esp + 8]
cmp ecx, 0x80
je 0x52134f
cmp edi, 0x5f
je 0x52135b
test eax, eax
mov edi, dword [esp]
jne 0x521360
movzx eax, cl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
mov eax, 0x85
cmovne edi, eax
cmp dword [esp + 8], 0x5f
cmove edi, eax
mov ebx, edi
mov eax, dword [esp + 0x10]
cmp eax, 0x80
je 0x5212d0
movzx ecx, al
mov edi, eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
cmp edi, 0x5f
je 0x52129b
test eax, eax
je 0x5212d0
mov edi, 0x86
cmp ebx, 0x82
je 0x5212dd
mov ecx, dword [esp + 8]
cmp ecx, 0x80
je 0x5212d0
movzx eax, cl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
cmp dword [esp + 8], 0x5f
je 0x5212d0
test eax, eax
je 0x5212dd
nop dword [eax]
lea eax, [ebx - 0x85]
mov edi, ebx
cmp eax, 1
ja 0x521300
mov ecx, ebp
mov edx, dword [esp + 4]
push esi
push edi
push esi
push dword [esp + 0x18]
call fcn.00522b90
add esp, 0x10
jmp 0x521302
mov eax, esi
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, esi
mov ebx, dword [esp + 0x1c]
je 0x52136f
mov ecx, eax
and eax, dword [esp + 0x2c]
mov eax, ecx
jne 0x52136f
mov ecx, ebp
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x38]
push esi
mov ebp, dword [esp + 0xc]
push ebp
push eax
push dword [esp + 0x18]
call fcn.00522b90
add esp, 0x10
add edi, 1
mov dword [esp + 0x10], ebp
cmp edi, dword [esp + 0x3c]
jne 0x5210e0
jmp 0x5210f0
mov ebx, dword [esp]
mov ecx, dword [esp + 0x28]
jmp 0x521288
mov ebx, dword [esp]
jmp 0x521362
mov ebx, edi
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
jmp 0x521288
mov dword [esp + 0x5c], ebx
test dword [esp + 0x2c], eax
je 0x521d3f
cmp dword [esp + 0x34], 0
jne 0x521392
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x48], 0
je 0x521eee
lea ecx, [esp + 0x44]
mov edx, ebx
push dword [esp + 0xc]
push dword [esp + 8]
push esi
call fcn.00521f80
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x5213e4
add ebx, 1
mov edi, dword [esp + 4]
nop word cs:[eax + eax]
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x44]
mov edx, ebx
push dword [esp + 0xc]
push edi
push dword [esp + 0x20]
call fcn.00521f80
add esp, 0xc
add ebx, 1
test eax, eax
je 0x5213c0
mov esi, eax
cmp dword [esp + 0x34], 1
mov eax, dword [esp + 0x14]
jne 0x5213f9
cmp dword [eax + 0x48], 0
je 0x521c4f
mov eax, dword [esp + 0x4c]
mov edi, dword [ebp + 0x44]
test eax, eax
jne 0x521421
lea eax, [edi*8 + 8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
je 0x521dc3
test edi, edi
je 0x521463
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 8], 0xffffffff
cmp dword [ebp + 0x44], 2
jb 0x521463
mov eax, 2
nop
mov ecx, dword [esp + 0x4c]
mov dword [ecx + eax*8 + 4], 0xffffffff
mov ecx, dword [esp + 0x4c]
mov dword [ecx + eax*8], 0xffffffff
add eax, 1
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx + 0x44]
jbe 0x521440
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x48], 0
mov ebx, dword [esp + 4]
jne 0x521490
test byte [esp + 0x49], 4
jne 0x521490
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x44]
push dword [esp + 0xc]
push ebx
push esi
call fcn.00522280
add esp, 0xc
jmp 0x5214da
mov edi, dword [eax + 0x4c]
mov eax, dword [esp + 0x60]
test edi, edi
jle 0x5214b4
test eax, eax
jne 0x5214b4
lea eax, [edi*4 + 4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x60], eax
test edi, edi
jle 0x5214c0
test eax, eax
je 0x521d61
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x44]
push 0
push 0
push dword [esp + 0x14]
push ebx
push esi
call fcn.005225a0
add esp, 0x14
test eax, eax
jne 0x521c4f
mov ebx, dword [esp + 0x5c]
mov al, 1
nop dword [eax + eax]
cmp esi, ebx
jbe 0x52153c
add esi, 0xffffffff
lea ecx, [esp + 0x44]
mov edx, ebx
mov edi, dword [esp + 0xc]
push edi
mov ebp, dword [esp + 8]
push ebp
push esi
call fcn.00521f80
add esp, 0xc
test eax, eax
je 0x521538
mov esi, eax
lea ecx, [esp + 0x44]
mov edx, ebx
push 0
push 0
push edi
push ebp
push eax
call fcn.005225a0
add esp, 0x14
mov ebx, dword [esp + 0x5c]
test eax, eax
sete al
je 0x5214f0
jmp 0x52153c
xor esi, esi
mov al, 1
test al, al
je 0x521c4f
cmp ebx, dword [esp + 0x18]
je 0x521c4f
add ebx, 1
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
jmp 0x521089
mov eax, dword [esp + 0xa0]
mov ecx, ebp
mov ebp, dword [eax]
add ebp, ecx
mov eax, dword [eax + 4]
add eax, ecx
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x2c], eax
mov esi, eax
sub esi, ebp
mov eax, dword [esp + 0x14]
jb 0x521f60
mov ecx, dword [eax + 0x3c]
mov dword [esp + 4], ecx
test ecx, ecx
mov dword [esp + 0x20], ebx
je 0x521605
mov edi, ebp
mov ecx, dword [esp + 0x2c]
cmp ebp, ecx
jae 0x5215fd
mov eax, dword [esp + 4]
mov bl, byte [eax]
mov edi, ebp
jmp 0x5215d0
add edi, 1
add esi, 0xffffffff
cmp dword [esp + 0x2c], edi
je 0x521c42
cmp byte [edi], bl
jne 0x5215c0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
cmp esi, eax
jl 0x5215c0
push eax
push dword [esp + 8]
push edi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x5215c0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp edi, ecx
je 0x521c42
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov esi, dword [eax + 0x1c]
lea eax, [esi*4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], 0xc
test eax, eax
je 0x521f60
add dword [esp + 0x1c], 1
mov dword [esp + 0x6c], eax
lea ecx, [eax + esi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x70], ecx
lea ecx, [eax + esi*2]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], 4
lea ecx, [esi + esi*2]
mov dword [esp + 0x24], eax
add ecx, eax
mov dword [esp + 0x78], ecx
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebp
cmp ebp, eax
mov dword [esp], eax
je 0x5216b3
movsx eax, byte [eax - 1]
mov dword [esp + 0x10], eax
jmp 0x5216bb
mov dword [esp + 0x10], 0x80
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
push dword [eax + 0x1c]
push 0
mov ebp, dword [esp + 0x2c]
push ebp
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp + esi], 1
mov ecx, dword [esp + 0x44]
mov edx, esi
push ebp
push 0x84
push ebp
push ebx
call fcn.005239c0
add esp, 0x10
mov eax, dword [esp + 0x44]
push dword [eax + 0x1c]
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor edi, edi
mov ebx, dword [esp]
cmp ebx, dword [esp + 0x58]
je 0x521720
nop
movsx eax, byte [ebx]
mov dword [esp + 8], eax
jmp 0x521728
mov dword [esp + 8], 0x80
mov esi, ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
push dword [eax + 0x1c]
push dword [esp + 0x1c]
push ebp
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
cmove edi, ebx
xor eax, eax
mov ebx, 0x82
mov ecx, dword [esp + 0x10]
cmp ecx, 0x80
mov edx, esi
je 0x521780
cmp ecx, 0xa
mov ecx, dword [esp + 8]
jne 0x5217b0
mov esi, dword [esp + 0xc]
test byte [esi + 0x18], 8
mov esi, 0
jne 0x521790
jmp 0x5217b2
test byte [esp + 0x48], 1
mov esi, 0
mov ecx, dword [esp + 8]
jne 0x5217b2
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x2c]
mov eax, 0x81
mov ebx, 0x83
jmp 0x5217b2
xor esi, esi
cmp ecx, 0x80
mov dword [esp], edx
mov dword [esp + 0x3c], edi
je 0x5217e0
cmp ecx, 0xa
jne 0x5217f0
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 8
jne 0x5217e7
jmp 0x5217f0
test byte [esp + 0x48], 2
jne 0x5217f0
mov eax, dword [esp + 0xc]
add esi, dword [eax + 0x30]
mov eax, ebx
test esi, esi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], eax
jle 0x52184e
mov ecx, dword [esp + 0xc]
mov edx, ebx
push ebp
push eax
push ebp
push edi
call fcn.005239c0
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp esi, 1
je 0x52184e
add esi, 1
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [esp + 0x44]
mov edx, ebx
push ebp
push eax
push ebp
push edi
call fcn.005239c0
mov eax, dword [esp + 0x14]
add esp, 0x10
add esi, 0xffffffff
cmp esi, 2
jg 0x521830
cmp eax, 0x81
jne 0x521870
mov esi, 0x81
cmp dword [esp + 8], 0x80
mov edx, dword [esp]
jne 0x5218bf
jmp 0x5218e8
mov ebx, dword [esp + 0x10]
cmp ebx, 0x80
mov edx, dword [esp]
jne 0x521890
mov esi, eax
mov edi, dword [esp + 0x1c]
jmp 0x52191d
movzx ebp, bl
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
cmp dword [esp + 8], 0x80
je 0x521a26
cmp ebx, 0x5f
je 0x521a2f
test eax, eax
mov edx, dword [esp]
jne 0x521a2f
mov ebx, dword [esp + 8]
movzx eax, bl
push eax
mov esi, edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
mov edx, esi
add esp, 4
test eax, eax
mov eax, 0x85
mov esi, dword [esp + 4]
cmovne esi, eax
cmp ebx, 0x5f
cmove esi, eax
mov ebx, dword [esp + 0x10]
cmp ebx, 0x80
jne 0x521900
mov edi, dword [esp + 0x1c]
jmp 0x52191d
movzx ebp, bl
mov edi, dword [esp + 0x1c]
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
cmp ebx, 0x5f
je 0x521930
test eax, eax
jne 0x521930
mov edx, dword [esp]
lea eax, [esi - 0x85]
mov ebx, esi
cmp eax, 1
jbe 0x521950
jmp 0x52196d
mov ebx, 0x86
cmp esi, 0x82
mov edx, dword [esp]
jne 0x5219ed
nop word cs:[eax + eax]
nop
mov ecx, dword [esp + 0x44]
mov esi, edx
mov edx, edi
mov eax, dword [esp + 0x24]
push eax
push ebx
push eax
push dword [esp + 0x2c]
call fcn.005239c0
mov edx, esi
add esp, 0x10
mov esi, edi
mov ebx, dword [esp + 0x2c]
cmp edx, ebx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
je 0x521a40
cmp byte [ebp + edi], 0
jne 0x521a40
mov eax, dword [esp + 0x44]
push dword [eax + 0x1c]
push ebp
mov ebx, edi
mov edi, dword [esp + 0x40]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esp + 0x44]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
push ebp
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov edx, esi
push ebp
mov esi, dword [esp + 0xc]
push esi
push edi
push ebx
call fcn.005239c0
mov ebx, dword [esp + 0x10]
add esp, 0x10
add ebx, 1
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x3c]
cmp ebx, dword [esp + 0x58]
jne 0x521710
jmp 0x521720
mov eax, dword [esp + 8]
cmp eax, 0x80
je 0x52191d
mov ecx, eax
movzx eax, cl
mov ebp, ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
cmp ebp, 0x5f
je 0x52191a
test eax, eax
mov edx, dword [esp]
je 0x521950
jmp 0x52191d
mov esi, dword [esp + 4]
jmp 0x521903
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
jmp 0x521907
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
cmp byte [ebp + edi], 0
je 0x521d78
cmp dword [esp + 0x30], 0
jne 0x521a68
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x48], 0
je 0x521f27
lea ecx, [esp + 0x44]
push edi
mov ebp, esi
push esi
push ebx
call fcn.00522db0
add esp, 0xc
mov esi, edi
mov edi, eax
test eax, eax
jne 0x521ab0
nop word cs:[eax + eax]
nop dword [eax + eax]
mov edx, dword [esp + 0x5c]
add edx, 1
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00522db0
add esp, 0xc
test eax, eax
je 0x521a90
mov edi, eax
cmp dword [esp + 0x30], 1
mov eax, dword [esp + 0x14]
jne 0x521ac5
cmp dword [eax + 0x48], 0
je 0x521cc7
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esi + 0x44]
test eax, eax
jne 0x521af1
lea eax, [ebx*8 + 8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
je 0x521e4c
test ebx, ebx
je 0x521b33
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 8], 0xffffffff
cmp dword [esi + 0x44], 2
jb 0x521b33
mov eax, 2
nop
mov ecx, dword [esp + 0x4c]
mov dword [ecx + eax*8 + 4], 0xffffffff
mov ecx, dword [esp + 0x4c]
mov dword [ecx + eax*8], 0xffffffff
add eax, 1
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx + 0x44]
jbe 0x521b10
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x48], 0
mov ebx, dword [esp + 0x20]
jne 0x521b5f
test byte [esp + 0x49], 4
jne 0x521b5f
mov edx, dword [esp + 0x5c]
lea esi, [esp + 0x44]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.005230c0
add esp, 0xc
jmp 0x521ba8
mov esi, dword [eax + 0x4c]
mov eax, dword [esp + 0x60]
test esi, esi
jle 0x521b83
test eax, eax
jne 0x521b83
lea eax, [esi*4 + 4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x60], eax
test esi, esi
jle 0x521b8f
test eax, eax
je 0x521da6
mov edx, dword [esp + 0x5c]
lea esi, [esp + 0x44]
mov ecx, esi
push 0
push 0
push ebx
push ebp
push edi
call fcn.005233d0
add esp, 0x14
test eax, eax
jne 0x521cc7
mov ecx, dword [esp + 0x5c]
mov al, 1
mov edx, ecx
cmp edi, ecx
jbe 0x521c00
nop dword [eax]
add edi, 0xffffffff
mov ecx, esi
push ebx
push ebp
push edi
call fcn.00522db0
add esp, 0xc
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x521bfc
mov edi, eax
mov ecx, esi
push 0
push 0
push ebx
push ebp
push eax
call fcn.005233d0
add esp, 0x14
mov edx, dword [esp + 0x5c]
test eax, eax
sete al
jne 0x521c00
cmp edi, edx
ja 0x521bc0
jmp 0x521c00
xor edi, edi
mov al, 1
test al, al
je 0x521cc7
cmp edx, dword [esp + 0x2c]
je 0x521cc7
mov eax, edx
add eax, 1
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x38], ecx
jmp 0x5216a2
mov esi, 1
jmp 0x521f64
mov dword [esp + 0x28], 1
jmp 0x521f60
cmp dword [esp + 0x34], 0
je 0x521eee
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
sub esi, eax
mov eax, dword [esp + 0xa0]
mov dword [eax], ecx
mov dword [eax + 4], esi
cmp dword [esp + 0x34], 1
je 0x521eee
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x34]
lea ebx, [esi - 1]
mov edx, 1
cmp esi, 2
jne 0x521dcd
test bl, 1
je 0x521eee
cmp edx, dword [ecx + 0x44]
jbe 0x521edd
mov eax, dword [esp + 0xa0]
mov dword [eax + edx*8], 0xffffffff
mov dword [eax + edx*8 + 4], 0xffffffff
jmp 0x521eee
cmp dword [esp + 0x30], 0
je 0x521f27
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
sub edi, eax
mov eax, dword [esp + 0xa0]
mov dword [eax], ecx
mov dword [eax + 4], edi
cmp dword [esp + 0x30], 1
je 0x521f27
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
lea ebx, [esi - 1]
mov edx, 1
cmp esi, 2
jne 0x521e5e
test bl, 1
je 0x521f27
cmp edx, dword [ecx + 0x44]
jbe 0x521f16
mov eax, dword [esp + 0xa0]
mov dword [eax + edx*8], 0xffffffff
mov dword [eax + edx*8 + 4], 0xffffffff
jmp 0x521f27
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [esp + 0x4c]
call esi
add esp, 4
push dword [esp + 0x60]
call esi
add esp, 4
mov esi, 1
jmp 0x521f64
push dword [esp + 0x4c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, 0xc
jmp 0x521f64
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [esp + 0x4c]
call esi
add esp, 4
push dword [esp + 0x60]
call esi
add esp, 4
push dword [esp + 0x68]
call esi
add esp, 4
mov dword [esp + 0x28], 1
jmp 0x521f60
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [esp + 0x4c]
call esi
add esp, 4
push dword [esp + 0x68]
call esi
add esp, 4
jmp 0x521f60
mov esi, 0xc
jmp 0x521f64
mov esi, ebx
and esi, 0xfffffffe
neg esi
mov edx, 1
jmp 0x521e04
mov edi, dword [esp + 0xa0]
mov dword [edi + edx*8 + 8], 0xffffffff
mov dword [edi + edx*8 + 0xc], 0xffffffff
lea edi, [esi + edx]
add edi, 2
add edx, 2
cmp edi, 1
je 0x521c9a
cmp edx, dword [ecx + 0x44]
jbe 0x521e21
mov edi, dword [esp + 0xa0]
mov dword [edi + edx*8], 0xffffffff
mov dword [edi + edx*8 + 4], 0xffffffff
jmp 0x521e32
movsd xmm0, qword [eax + edx*8]
mov edi, dword [esp + 0xa0]
movsd qword [edi + edx*8], xmm0
cmp edx, dword [ecx + 0x44]
jae 0x521ddb
movsd xmm0, qword [eax + edx*8 + 8]
mov edi, dword [esp + 0xa0]
movsd qword [edi + edx*8 + 8], xmm0
jmp 0x521df2
push dword [esp + 0x68]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x521f60
mov esi, ebx
and esi, 0xfffffffe
neg esi
mov edx, 1
jmp 0x521e95
mov edi, dword [esp + 0xa0]
mov dword [edi + edx*8 + 8], 0xffffffff
mov dword [edi + edx*8 + 0xc], 0xffffffff
lea edi, [esi + edx]
add edi, 2
add edx, 2
cmp edi, 1
je 0x521d12
cmp edx, dword [ecx + 0x44]
jbe 0x521eb2
mov edi, dword [esp + 0xa0]
mov dword [edi + edx*8], 0xffffffff
mov dword [edi + edx*8 + 4], 0xffffffff
jmp 0x521ec3
movsd xmm0, qword [eax + edx*8]
mov edi, dword [esp + 0xa0]
movsd qword [edi + edx*8], xmm0
cmp edx, dword [ecx + 0x44]
jae 0x521e6c
movsd xmm0, qword [eax + edx*8 + 8]
mov edi, dword [esp + 0xa0]
movsd qword [edi + edx*8 + 8], xmm0
jmp 0x521e83
movsd xmm0, qword [eax + edx*8]
mov eax, dword [esp + 0xa0]
movsd qword [eax + edx*8], xmm0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x521f00
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x60]
xor esi, esi
test eax, eax
je 0x521f64
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x521f64
movsd xmm0, qword [eax + edx*8]
mov eax, dword [esp + 0xa0]
movsd qword [eax + edx*8], xmm0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x521f39
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x521f4b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x68]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00533ace
mov eax, esi
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret