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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
xor edi, edi
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
test esi, esi
je 0x1002241e
cmp dword [esi], 0xc0dedbad
jne 0x1002241e
mov ecx, dword [esp + 0x70]
cmp byte [ecx + 0xe4], 0
je 0x100210d0
mov edi, 0x2a
push esi
mov dword [esp + 0x1c], edi
call fcn.10007c80
push 0
push edi
push esi
call fcn.10020a00
add esp, 0x10
cmp dword [esi + 0x28], 0xf
je 0x100210c8
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100210b8
push esi
call fcn.100368a0
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2d4]
push eax
call fcn.100390e0
push ebx
push esi
call fcn.10029ae0
add esp, 0x18
push esi
mov dword [esi + 0xc], 0
call fcn.1001fb60
add esp, 4
mov ecx, dword [esp + 0x70]
nop dword [eax]
mov al, byte [ecx + 0xe2]
xor ebp, ebp
mov byte [esp + 0x10], 0
mov byte [ecx + 0xe2], 0
test al, al
je 0x10021135
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10021135
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x10021113
push ebx
mov dword [ebx + 0x28], 2
call fcn.100375c0
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x70]
push 0
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.100390e0
push 8
push 0
push 0
push ebx
call fcn.1001f950
add esp, 0x1c
mov byte [ebx + 0xd19], 1
mov ecx, dword [esi + 0x28]
lea ebx, [esi + 0xc]
lea eax, [ecx - 3]
cmp eax, 0xb
ja 0x10021154
cmp dword [ebx], ebp
jne 0x10021158
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [ebx], ebp
je 0x10021188
lea eax, [ecx - 2]
cmp eax, 0xc
ja 0x10021188
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x80]
push esi
call fcn.10020ec0
mov edi, dword [esp + 0x2c]
add esp, 0x14
test al, al
jne 0x1002221d
mov ecx, dword [esi + 0x28]
cmp ecx, 0x10
ja case.default.0x10021190
jmp dword [ecx*4 + 0x1002242c]
push esi
call fcn.10037660
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x10021190.1
cmp dword [esi + 0x28], 2
je 0x100211c4
push esi
mov dword [esi + 0x28], 2
call fcn.100375c0
add esp, 4
push 1
lea eax, [esp + 0x40]
push esi
push eax
call fcn.100401c0
add esp, 0xc
or ebp, 0xffffffff
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x74]
movups xmmword [eax], xmm0
jmp case.0x10021190.1
cmp dword [esi + 0x8c4], ebp
jne 0x10021217
mov eax, dword [esi + 0x4bc]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esi + 0x8c4], eax
test eax, eax
jne 0x10021217
mov edi, 0x1b
mov dword [esp + 0x18], edi
jmp case.0x10021190.1
push 2
lea eax, [esp + 0x50]
push esi
push eax
call fcn.100401c0
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x74]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x1ec]
test eax, eax
je 0x10021249
push 0xa
push 0
push eax
push esi
call fcn.1001f950
add esp, 0x10
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x10021261
push 2
push 0
push eax
push esi
call fcn.1001f950
add esp, 0x10
lea eax, [esp + 0x11]
push eax
lea eax, [esp + 0x1a]
push eax
push esi
call fcn.1002aec0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
cmp edi, 0x59
jne 0x100212af
cmp dword [esi + 0x28], 1
je 0x1002128c
mov dword [esi + 0x28], 1
lea eax, [esi + 0x10]
push eax
mov eax, dword [esp + 0x74]
push esi
push dword [eax + 0x28]
add eax, 0x24
push eax
call fcn.10039060
add esp, 0x10
xor edi, edi
mov dword [esp + 0x18], edi
jmp case.0x10021190.1
cmp byte [esi + 0xd19], 0
je 0x10021318
push str.Transfer_was_pending__now_try_another
push esi
call fcn.1002f920
mov eax, dword [esi + 0x70]
add esp, 8
add eax, 0x24
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10021318
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x100212f6
push ebx
mov dword [ebx + 0x28], 2
call fcn.100375c0
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push eax
push dword [esp + 0x2c]
call fcn.100390e0
push 8
push 0
push 0
push ebx
call fcn.1001f950
add esp, 0x1c
mov byte [ebx + 0xd19], 1
test edi, edi
jne case.0x10021190.1
cmp byte [esp + 0x16], 0
je 0x1002133d
cmp dword [esi + 0x28], 3
je case.0x10021190.1
mov dword [esi + 0x28], 3
jmp case.0x10021190.1
or ebp, 0xffffffff
cmp byte [esp + 0x11], 0
je 0x10021363
cmp dword [esi + 0x28], 8
je case.0x10021190.1
push esi
mov dword [esi + 0x28], 8
call fcn.10036910
jmp 0x100221c8
push dword [esi + 0xc]
call fcn.10036960
add esp, 4
test al, al
jne 0x10021574
cmp dword [esi + 0x28], 4
je case.0x10021190.1
mov dword [esi + 0x28], 4
jmp case.0x10021190.1
mov eax, dword [ebx]
mov dword [esp + 0x1c], ebp
cmp byte [eax + 0x240], 0
je 0x100213a3
mov ebx, dword [eax + 0xa4]
jmp 0x100213b4
cmp byte [eax + 0x249], 0
je 0x100213b1
mov ebx, dword [eax + 0x74]
jmp 0x100213b4
mov ebx, dword [eax + 0x5c]
push dword [eax + 0x4ec]
push ebx
push esi
call fcn.10039850
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100213f4
push ebx
push 0x100972d0
xor edi, edi
mov dword [esi + 0x990], eax
push esi
mov byte [esi + 0x9a4], 1
mov dword [esp + 0x24], edi
call fcn.1002f920
add esp, 0xc
cmp dword [esp + 0x1c], edi
jne 0x10021408
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1003a450
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x70]
push esi
push eax
call fcn.10022c40
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10022407
cmp dword [esp + 0x1c], eax
je 0x10021441
lea eax, [esp + 0x11]
push eax
push esi
call fcn.10039f30
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x10021453
mov dword [esi + 0xc], ebp
test edi, edi
je case.0x10021190.1
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
or ebp, 0xffffffff
cmp byte [esp + 0x11], 0
jne 0x10021347
push dword [esi + 0xc]
call fcn.10036960
mov ecx, dword [esi + 0x28]
add esp, 4
test al, al
je 0x1002147b
cmp ecx, 5
jmp 0x10021578
cmp ecx, 4
je case.0x10021190.1
mov dword [esi + 0x28], 4
jmp case.0x10021190.1
lea eax, [esp + 0x11]
push eax
push esi
call fcn.1003b970
mov edi, eax
add esp, 8
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp byte [eax + 0x244], 0
je 0x100214df
xor edi, edi
or ebp, 0xffffffff
push edi
push edi
push esi
mov dword [esp + 0x24], edi
call fcn.10020a00
add esp, 0xc
cmp dword [esi + 0x28], 2
je case.0x10021190.1
push esi
mov dword [esi + 0x28], 2
call fcn.100375c0
jmp 0x100221c8
test edi, edi
jne 0x10021a69
cmp byte [eax + 0xb0], 2
jne 0x100214fd
cmp byte [eax + 0x23e], 0
je case.0x10021190.1
push eax
call fcn.10036880
add esp, 4
test al, al
je case.0x10021190.1
or ebp, 0xffffffff
cmp dword [esi + 0x28], 6
je case.0x10021190.1
mov dword [esi + 0x28], 6
jmp case.0x10021190.1
lea eax, [esp + 0x17]
push eax
push 0
push dword [ebx]
push esi
call fcn.10030910
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x17], 0
mov dword [esp + 0x18], edi
je 0x100215ca
test edi, edi
jne 0x10021734
mov eax, dword [esi + 0xc]
cmp byte [eax + 0xb0], 2
jne 0x10021567
cmp byte [eax + 0x23e], 0
je 0x10021574
push eax
call fcn.10036960
add esp, 4
test al, al
je 0x1002158a
cmp dword [esi + 0x28], 5
je case.0x10021190.1
mov dword [esi + 0x28], 5
jmp case.0x10021190.1
mov eax, dword [esi + 0xc]
or ebp, 0xffffffff
mov cl, byte [eax + 0x243]
xor eax, eax
test cl, cl
sete al
add eax, 5
cmp dword [esi + 0x28], eax
je case.0x10021190.1
mov dword [esi + 0x28], eax
xor eax, eax
test cl, cl
sete al
mov eax, dword [eax*4 + 0x10097124]
test eax, eax
je case.0x10021190.1
push esi
call eax
jmp 0x100221c8
test edi, edi
je case.0x10021190.1
jmp 0x10021734
mov ebx, dword [ebx]
xor edi, edi
mov byte [esp + 0x11], 0
cmp byte [ebx + 0x23c], 0
je 0x1002160b
cmp byte [ebx + 0x24e], 0
je 0x10021618
mov eax, dword [ebx + 0x280]
cmp dword [eax + 0x18], edi
jne 0x1002167c
mov byte [esp + 0x11], 1
mov dword [esp + 0x18], edi
jmp 0x100216be
cmp byte [ebx + 0x24e], 0
jne 0x100216b0
push 0
push esi
call fcn.100369e0
mov edi, eax
add esp, 8
test edi, edi
je 0x1002164b
mov ebx, edi
mov dword [esp + 0x18], edi
push esi
call fcn.10007c80
push 1
push ebx
push esi
call fcn.10020a00
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
cmp byte [ebx + 0xb0], 2
jne 0x1002165d
cmp byte [ebx + 0x23e], 0
je 0x1002167c
cmp byte [ebx + 0x243], 0
je 0x10021684
cmp byte [ebx + 0x240], 0
je 0x10021684
push ebx
call fcn.10036960
add esp, 4
test al, al
je 0x10021684
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x100216be
mov eax, dword [ebx + 0x280]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100216a4
lea ecx, [esp + 0x11]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x100216a9
jmp 0x100216b0
mov byte [esp + 0x11], 1
mov byte [ebx + 0x24e], 1
mov dword [esp + 0x18], edi
mov ebx, edi
test edi, edi
jne 0x1002162f
cmp byte [esp + 0x11], 0
jne 0x100216db
cmp dword [esi + 0x28], 7
je case.0x10021190.1
mov dword [esi + 0x28], 7
jmp case.0x10021190.1
cmp dword [esi + 0x28], 8
je 0x100218d9
push esi
mov dword [esi + 0x28], 8
call fcn.10036910
add esp, 4
or ebp, 0xffffffff
jmp case.0x10021190.1
mov edx, dword [ebx]
test edx, edx
je 0x10021756
mov eax, dword [edx + 0x280]
cmp dword [eax + 0x18], ebp
je 0x10021756
mov byte [esp + 0x11], 0
lea ecx, [esp + 0x11]
mov eax, dword [edx + 0x280]
push ecx
push esi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esi + 0x28]
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x10021750
push esi
call fcn.10007c80
push 1
push edi
push esi
call fcn.10020a00
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
mov al, byte [esp + 0x11]
jmp 0x10021762
mov al, 1
xor edi, edi
mov byte [esp + 0x11], al
mov dword [esp + 0x18], edi
test al, al
je case.0x10021190.1
cmp ecx, 8
jmp 0x100216df
cmp dword [esi + 0x1c8], ebp
je 0x10021816
mov eax, dword [esi + 0x74]
lea edi, [esi + 0x70]
test eax, eax
jne 0x1002178e
mov eax, dword [edi]
test eax, eax
je 0x10021795
mov byte [eax + 0xe3], 1
push dword [esi + 0xdf8]
lea eax, [esi + 0xdc8]
push dword [esi + 0xdc0]
push eax
lea eax, [esi + 0xd90]
push eax
push dword [esi + 0x1cc]
mov eax, dword [esi + 0x1c8]
call eax
mov ecx, dword [esi + 0x74]
add esp, 0x14
mov edx, eax
test ecx, ecx
je 0x100217d2
mov byte [ecx + 0xe3], 0
jmp 0x100217df
mov eax, dword [edi]
test eax, eax
je 0x100217df
mov byte [eax + 0xe3], 0
test edx, edx
je 0x10021813
push str.operation_aborted_by_pre_request_callback
push esi
call fcn.1002f850
mov edi, 0x2a
push esi
mov dword [esp + 0x24], edi
call fcn.10007c80
push 0
push edi
push esi
call fcn.10020a00
add esp, 0x18
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
mov ecx, dword [esi + 0x28]
cmp byte [esi + 0x6c1], 1
mov edx, dword [esi + 0xc]
jne 0x10021848
push 0
push edx
call fcn.10030440
add esp, 8
cmp dword [esi + 0x28], 0xe
je 0x1002183a
mov dword [esi + 0x28], 0xe
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x18], edi
jmp case.0x10021190.1
mov eax, dword [edx + 0x280]
xor edi, edi
mov eax, dword [eax + 8]
test eax, eax
je 0x1002186a
lea ecx, [esp + 0x12]
push ecx
push esi
call eax
mov edx, dword [esi + 0xc]
add esp, 8
mov ecx, dword [esi + 0x28]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1002193b
cmp byte [esp + 0x12], 0
jne 0x100218f4
cmp byte [esi + 0xd12], 0
je 0x100218e1
mov eax, dword [esi + 0xd20]
cmp eax, 7
je 0x10021896
cmp eax, 5
jne 0x100218e1
push 0
push 0
push esi
call fcn.10020a00
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, ecx
neg eax
sbb eax, eax
add eax, 0xf
cmp dword [esi + 0x28], eax
je 0x100218d9
mov dword [esi + 0x28], eax
test ecx, ecx
jne 0x100218c1
mov eax, dword [esi + 0x70]
dec dword [eax + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov eax, dword [eax*4 + 0x10097148]
test eax, eax
je 0x100218d9
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x10021190.1
cmp ecx, 9
je 0x100218ed
mov dword [esi + 0x28], 9
xor ebp, ebp
jmp case.0x10021190.1
cmp byte [edx + 0x24d], 0
je 0x10021910
cmp ecx, 0xa
je 0x10021909
mov dword [esi + 0x28], 0xa
xor ebp, ebp
jmp case.0x10021190.1
cmp ecx, 0xb
je 0x100218d9
push 6
lea eax, [esp + 0x60]
mov dword [esi + 0x28], 0xb
push esi
push eax
mov byte [esi + 0x142], 0
call fcn.100401c0
add esp, 0xc
or ebp, 0xffffffff
jmp case.0x10021190.1
cmp edi, 0x37
jne 0x100219f9
cmp byte [edx + 0x247], 0
je 0x100219f9
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push esi
call fcn.10037e00
add esp, 8
test eax, eax
je 0x10021972
mov edi, eax
mov byte [esp + 0x10], 1
mov dword [esp + 0x18], edi
push esi
call fcn.10007c80
push 0
push edi
push esi
call fcn.10020a00
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x100219e8
test eax, eax
je 0x100219a7
cmp eax, 0x37
je 0x100219a7
mov edi, eax
push ecx
mov dword [esp + 0x1c], edi
call dword [0x100b2004]
jmp 0x100221c8
push 2
push ecx
push esi
call fcn.10037080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100219d4
cmp dword [esi + 0x28], 2
je 0x100219cf
push esi
mov dword [esi + 0x28], 2
call fcn.100375c0
add esp, 4
or ebp, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], edi
call dword [0x100b2004]
jmp 0x100221c8
push ecx
mov byte [esp + 0x14], 1
call dword [0x100b2004]
jmp 0x100221c8
push esi
call fcn.10007c80
add esp, 4
cmp dword [esi + 0xc], ebp
je 0x10021a13
push 0
push edi
push esi
call fcn.10020a00
add esp, 0xc
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
mov edx, dword [ebx]
test edx, edx
je 0x10021a73
mov eax, dword [edx + 0x280]
cmp dword [eax + 0x1c], ebp
je 0x10021a73
mov byte [esp + 0x12], 0
lea ecx, [esp + 0x12]
mov eax, dword [edx + 0x280]
push ecx
push esi
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [esi + 0xc]
mov edi, eax
mov ecx, dword [esi + 0x28]
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x10021a7e
push esi
call fcn.10007c80
push 0
push edi
push esi
call fcn.10020a00
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x10021190.1
xor edi, edi
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], edi
cmp byte [esp + 0x12], 0
je case.0x10021190.1
mov dl, byte [edx + 0x24d]
xor eax, eax
test dl, dl
sete al
add eax, 0xa
cmp ecx, eax
je 0x100218d9
mov dword [esi + 0x28], eax
xor eax, eax
test dl, dl
sete al
mov eax, dword [eax*4 + 0x10097138]
jmp 0x100218cf
mov eax, dword [ebx]
xor edx, edx
mov dword [esp + 0x2c], edx
xor edi, edi
mov eax, dword [eax + 0x280]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10021ae2
lea ecx, [esp + 0x2c]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x28]
add esp, 8
mov edx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10021a57
test edx, edx
je 0x10022076
xor eax, eax
cmp edx, 1
sete al
lea eax, [eax*2 + 9]
cmp ecx, eax
je 0x100218d9
mov dword [esi + 0x28], eax
mov eax, dword [eax*4 + 0x10097110]
jmp 0x100218cf
mov eax, dword [ebx]
mov edx, ecx
cmp byte [eax + 0x258], 0
je 0x10021b7b
mov eax, dword [esp + 0x70]
add eax, 0x24
mov dword [esp + 0x30], eax
mov ebp, dword [eax]
test ebp, ebp
je 0x10021b7b
mov ebx, dword [ebp]
cmp dword [ebx + 0x28], 2
je 0x10021b57
push ebx
mov dword [ebx + 0x28], 2
call fcn.100375c0
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push ebp
push eax
call fcn.100390e0
push 8
push 0
push 0
push ebx
call fcn.1001f950
mov byte [ebx + 0xd19], 1
add esp, 0x1c
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x298], 0xffffffff
jne 0x10021bc6
cmp dword [eax + 0x29c], 0xffffffff
jne 0x10021bc6
cmp byte [esi + 0xd12], 0
je 0x10021bb2
mov eax, dword [eax + 0x280]
test dword [eax + 0x4c], 0x1000
jne 0x10021bb2
mov dword [esi + 0xd20], 7
cmp ecx, 0xe
je 0x10021bd2
mov dword [esi + 0x28], 0xe
or ebp, 0xffffffff
jmp case.0x10021190.1
cmp edx, 0xc
je 0x10021bd2
mov dword [esi + 0x28], 0xc
or ebp, 0xffffffff
jmp case.0x10021190.1
push esi
call fcn.10040320
add esp, 4
test eax, eax
je 0x10021bf4
mov ebx, 0x2a
mov edi, ebx
mov dword [esp + 0x18], edi
jmp 0x10021c18
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.10041680
mov edi, eax
add esp, 0x14
mov dword [esp + 0x18], edi
mov ebx, edi
test edi, edi
je 0x10021c4e
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x280]
test byte [eax + 0x4c], 2
jne 0x10021c37
cmp ebx, 0x5c
je 0x10021c37
push 2
push ecx
call fcn.10030440
add esp, 8
push esi
call fcn.10007c80
push 1
push ebx
push esi
call fcn.10020a00
add esp, 0x10
jmp case.0x10021190.1
mov edx, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
mov eax, edx
or eax, ecx
movlpd qword [esp + 0x30], xmm0
je 0x10021cb1
mov ebx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7d0]
push ecx
push edx
push dword [esi + 0x7e4]
movups xmmword [eax], xmm0
push dword [esi + 0x7e0]
push dword [esi + 0x734]
push dword [esi + 0x730]
call fcn.1003fe00
add esp, 0x38
mov dword [esp + 0x1c], edx
mov ebx, eax
jmp 0x10021cbd
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x220]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x224]
or eax, ecx
movlpd qword [esp + 0x24], xmm0
je 0x10021d20
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x220]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7e8]
push ecx
push edx
push dword [esi + 0x7fc]
movups xmmword [eax], xmm0
push dword [esi + 0x7f8]
push dword [esi + 0x72c]
push dword [esi + 0x728]
call fcn.1003fe00
add esp, 0x38
mov ecx, eax
jmp 0x10021d28
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, ebx
or eax, dword [esp + 0x1c]
jne 0x10021d60
mov eax, ecx
or eax, edx
jne 0x10021d60
cmp dword [esi + 0x28], 0xc
je 0x10021d43
mov dword [esi + 0x28], 0xc
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.10040670
add esp, 0x14
jmp case.0x10021190.1
mov eax, dword [esp + 0x1c]
cmp eax, edx
jl 0x10021d80
jg 0x10021d6e
cmp ebx, ecx
jb 0x10021d80
push 0xb
push eax
push ebx
push esi
call fcn.1001f950
add esp, 0x10
jmp case.0x10021190.1
push 0xb
push edx
push ecx
push esi
call fcn.1001f950
add esp, 0x10
jmp case.0x10021190.1
mov edx, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
mov eax, edx
or eax, ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
movlpd qword [esp + 0x30], xmm0
je 0x10021e03
mov ebx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7d0]
push ecx
push edx
push dword [esi + 0x7e4]
movups xmmword [eax], xmm0
push dword [esi + 0x7e0]
push dword [esi + 0x734]
push dword [esi + 0x730]
call fcn.1003fe00
add esp, 0x38
mov dword [esp + 0x20], edx
mov ebx, eax
jmp 0x10021e0f
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x220]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x224]
or eax, ecx
movlpd qword [esp + 0x24], xmm0
je 0x10021e76
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x220]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7e8]
push ecx
push edx
push dword [esi + 0x7fc]
movups xmmword [eax], xmm0
push dword [esi + 0x7f8]
push dword [esi + 0x72c]
push dword [esi + 0x728]
call fcn.1003fe00
add esp, 0x38
mov dword [esp + 0x24], eax
mov ecx, eax
jmp 0x10021e82
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, ebx
mov dword [esp + 0x30], edx
or eax, dword [esp + 0x20]
jne 0x1002207d
mov eax, ecx
or eax, edx
jne 0x1002207d
lea eax, [esp + 0x15]
push eax
lea eax, [esp + 0x17]
push eax
push esi
push dword [esi + 0xc]
call fcn.10037af0
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
jne 0x10021f03
cmp edi, 0x38
je 0x10021f03
cmp edi, 0x5c
jne 0x10021f8b
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x280]
test byte [eax + 0x4c], 2
jne 0x10021eec
cmp edi, 0x5c
je 0x10021eec
push 2
push ecx
call fcn.10030440
add esp, 8
push esi
call fcn.10007c80
push 1
push edi
push esi
call fcn.10020a00
add esp, 0x10
jmp case.0x10021190.1
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10037e00
add esp, 8
test eax, eax
jne 0x10021f7d
cmp dword [esp + 0x1c], ebp
setne bl
test bl, bl
je 0x10021f8f
push esi
mov byte [esp + 0x17], 1
call fcn.10007c80
add esp, 4
mov edi, 2
push 0
push 0
push esi
call fcn.10020a00
push edi
push dword [esp + 0x2c]
push esi
call fcn.10037080
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10021f6e
cmp dword [esi + 0x28], 2
je 0x10021f6b
push esi
mov dword [esi + 0x28], 2
call fcn.100375c0
add esp, 4
or ebp, 0xffffffff
push dword [esp + 0x1c]
call dword [0x100b2004]
jmp 0x100221c8
test edi, edi
jne 0x10021ecd
mov edi, eax
mov dword [esp + 0x18], edi
mov bl, byte [esp + 0x14]
test edi, edi
jne 0x10021ecd
cmp byte [esp + 0x13], 0
je 0x1002205c
push esi
call fcn.10007c80
add esp, 4
test bl, bl
jne 0x10021f2e
cmp dword [esi + 0x128], ebp
jne 0x10022035
cmp dword [esi + 0x124], ebp
je 0x1002201c
push dword [esp + 0x1c]
call dword [0x100b2004]
mov eax, dword [esi + 0x124]
push 1
push eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esi + 0x124], ebp
call fcn.10037080
push dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [0x100b2004]
add esp, 0x14
test edi, edi
je 0x1002201c
push 1
push edi
push esi
mov byte [esp + 0x1c], 1
call fcn.10020a00
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x10021190.1
cmp dword [esi + 0x28], 0xe
je 0x100218d9
mov dword [esi + 0x28], 0xe
or ebp, 0xffffffff
jmp case.0x10021190.1
push dword [esp + 0x1c]
call dword [0x100b2004]
mov eax, dword [esi + 0x128]
add esp, 4
mov dword [esp + 0x1c], eax
mov edi, 3
mov dword [esi + 0x128], ebp
jmp 0x10021f33
cmp byte [esp + 0x15], 0
je case.0x10021190.1
push 8
push 0
push 0
push esi
call fcn.1001f950
add esp, 0x10
xor ebp, ebp
jmp case.0x10021190.1
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.10040670
add esp, 0x14
cmp dword [esi + 0x28], 0xd
je 0x100220a2
mov dword [esi + 0x28], 0xd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
cmp eax, edx
jl 0x100220ca
jg 0x100220d2
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jb 0x100220ce
push 0xb
push eax
push ebx
push esi
call fcn.1001f950
add esp, 0x10
jmp case.0x10021190.1
mov ecx, dword [esp + 0x24]
mov ebx, ecx
mov eax, edx
push 0xb
push eax
push ebx
push esi
call fcn.1001f950
add esp, 0x10
jmp case.0x10021190.1
mov eax, dword [ebx]
or ebp, 0xffffffff
test eax, eax
je 0x1002215e
cmp byte [eax + 0x258], 0
je 0x10022149
mov eax, dword [esp + 0x70]
add eax, 0x24
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10022149
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x10022127
push ebx
mov dword [ebx + 0x28], 2
call fcn.100375c0
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push eax
push dword [esp + 0x2c]
call fcn.100390e0
push 8
push 0
push 0
push ebx
call fcn.1001f950
add esp, 0x1c
mov byte [ebx + 0xd19], 1
push 0
push edi
push esi
call fcn.10020a00
add esp, 0xc
test edi, edi
cmove edi, eax
mov dword [esp + 0x18], edi
cmp byte [esi + 0xd12], 0
je 0x1002217f
cmp dword [esi + 0xd20], 7
je 0x1002217f
cmp dword [esi + 0x28], 0
je case.0x10021190.1
mov dword [esi + 0x28], 0
jmp case.0x10021190.1
cmp dword [esi + 0x28], 0xf
je case.0x10021190.1
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100221bb
push esi
call fcn.100368a0
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2d4]
push eax
call fcn.100390e0
push ebx
push esi
call fcn.10029ae0
add esp, 0x18
push esi
mov dword [esi + 0xc], 0
call fcn.1001fb60
add esp, 4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
je 0x1002221d
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0xc]
mov ecx, dword [esp + 0x70]
sub eax, 2
cmp eax, 5
ja 0x10022221
lea ebx, [esi + 0xc]
cmp ebp, 0xffffffff
je 0x10022221
cmp byte [ecx + 0xe2], 0
lea ebx, [esi + 0xc]
jne 0x10022221
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x80]
push esi
call fcn.10020ec0
mov edi, dword [esp + 0x2c]
lea ebx, [esi + 0xc]
add esp, 0x14
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x28]
cmp eax, 0xf
jge 0x1002239d
test edi, edi
je 0x1002233a
mov ebp, dword [ecx + 0x24]
add ecx, 0x24
mov dword [esp + 0x30], ecx
test ebp, ebp
je 0x10022282
mov ebx, dword [ebp]
cmp dword [ebx + 0x28], 2
je 0x10022260
push ebx
mov dword [ebx + 0x28], 2
call fcn.100375c0
mov ecx, dword [esp + 0x34]
add esp, 4
push 0
push ebp
push ecx
call fcn.100390e0
push 8
push 0
push 0
push ebx
call fcn.1001f950
mov byte [ebx + 0xd19], 1
add esp, 0x1c
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0xc]
test ebp, ebp
je 0x100222d7
cmp byte [esp + 0x10], 0
je 0x100222e8
cmp edi, 0x1c
push esi
sete byte [esp + 0x3c]
call fcn.100368a0
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.100390e0
push ebp
push esi
call fcn.10029ae0
push 1
push ebp
push esi
mov dword [esi + 0xc], 0
call fcn.10028480
push dword [esp + 0x5c]
push ebp
push esi
call fcn.1002b0e0
add esp, 0x30
jmp 0x100222e8
lea ebp, [esi + 0xc]
cmp eax, 2
jne 0x100222eb
push esi
call fcn.10007c80
add esp, 4
lea ebp, [esi + 0xc]
cmp dword [esi + 0x28], 0xf
je 0x1002239a
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1002232b
push esi
call fcn.100368a0
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2d4]
push eax
call fcn.100390e0
push ebx
push esi
call fcn.10029ae0
add esp, 0x18
push esi
mov dword [ebp], 0
call fcn.1001fb60
jmp 0x10022397
cmp dword [ebx], 0
je 0x1002239d
push esi
call fcn.10040320
add esp, 4
test eax, eax
je 0x1002239d
push 2
push dword [ebx]
mov edi, 0x2a
mov dword [esp + 0x20], edi
call fcn.10030440
mov ecx, dword [esi + 0x28]
xor eax, eax
add esp, 8
cmp ecx, 0xe
setge al
add eax, 0xe
cmp ecx, eax
je 0x1002239a
mov dword [esi + 0x28], eax
cmp ecx, 0xe
jl 0x10022381
mov eax, dword [esi + 0x70]
dec dword [eax + 0x10]
xor eax, eax
cmp ecx, 0xe
setge al
mov eax, dword [eax*4 + 0x10097148]
test eax, eax
je 0x1002239a
push esi
call eax
add esp, 4
or ebp, 0xffffffff
cmp dword [esi + 0x28], 0xf
jne 0x100223ea
mov eax, dword [esi + 0x6a4]
test eax, eax
je 0x100223b6
push edi
push esi
call eax
add esp, 8
jmp 0x100223dd
lea eax, [esi + 0x30]
mov dword [eax + 0xc], 1
push eax
push eax
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov eax, dword [esp + 0x78]
push dword [eax + 0x18]
add eax, 0x14
push eax
call fcn.10039060
add esp, 0x10
xor ebp, ebp
cmp dword [esi + 0x28], 0x10
je 0x100223ea
mov dword [esi + 0x28], 0x10
mov ecx, dword [esp + 0x70]
cmp ebp, 0xffffffff
je 0x100210d0
cmp byte [ecx + 0xe2], 0
jne 0x100210d0
mov dword [esi + 0x2c], edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [esi + 0x2c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c
ret