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

Disassembly:
sub esp, 0x90
mov ecx, dword [esp + 0x9c]
xor eax, eax
push ebx
push ebp
xor ebp, ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
cmp dword [esp + 0xa4], ebp
je 0x10021dc3
cmp edi, ebp
je 0x10021dc3
cmp dword [esp + 0xb4], ebp
je 0x10021dc3
cmp ecx, ebp
je 0x100215b3
mov eax, dword [ecx + 0x3c]
push 0x8000
push ecx
mov ecx, dword [eax]
call ecx
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
cmp esi, ebp
jne 0x100214ee
call fcn.10036420
mov dword [eax], 0x17
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov edx, dword [esi + 0x20]
push edx
push 0x10001
call fcn.100362e2
add esp, 8
push esi
mov dword [esp + 0x14], eax
call dword [0x23d60e0]
test eax, eax
jne 0x1002156e
mov eax, dword [esi + 0x10]
mov ebp, dword [eax]
add esi, 0x10
cmp eax, esi
je 0x10021558
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea edi, [eax - 0x2c]
mov dword [edx], ecx
push edi
mov dword [eax], eax
mov dword [eax + 4], eax
call dword [0x23d60e0]
test eax, eax
jne 0x1002154f
push edi
call fcn.10005610
mov eax, dword [edi + 0xc]
add esp, 4
push edi
call eax
add esp, 4
mov eax, ebp
mov ebp, dword [ebp]
cmp eax, esi
jne 0x10021520
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
push eax
call ecx
mov edi, dword [esp + 0xb4]
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jne 0x1002158c
call fcn.10036420
mov dword [eax], 0xe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test dword [esp + 0xb8], 0x20000000
jne 0x100215b3
mov eax, dword [esp + 0x10]
mov edx, 0x20b
cmp word [eax + 0xa8], dx
jne 0x100215b3
mov dword [esp + 0x24], 0x40
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xac]
push edi
lea eax, [esp + 0xb8]
push eax
push ecx
push edx
call fcn.10025670
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x100215f7
call fcn.10036420
mov dword [eax], 0xc
jmp 0x10021da5
mov eax, dword [esp + 0xb8]
and eax, 0xf7ffffff
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x34], ebp
jne 0x10021630
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x68], 0x7d0
mov dword [esp + 0x6c], ebx
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x40]
push edx
push ebp
call eax
add esp, 8
push 0x5c
push edi
call fcn.10036510
mov esi, dword [esp + 0xb8]
add esp, 8
test eax, eax
je 0x10021674
mov edi, eax
sub edi, esi
push esi
inc edi
push ebp
call fcn.10020ad0
mov edi, eax
add esp, 8
test edi, edi
jge 0x10021674
push ebp
call fcn.10024ed0
add esp, 4
call fcn.10036420
neg edi
mov dword [eax], edi
xor ebp, ebp
jmp 0x10021da5
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.100559bb
add esp, 4
mov dword [ebp + 0x54], eax
test eax, eax
jne 0x100216a6
push ebp
call fcn.10024ed0
add esp, 4
call fcn.10036420
mov dword [eax], 0xc
xor ebp, ebp
jmp 0x10021da5
test dword [esp + 0xb8], 0x80000000
jne 0x10021c5c
mov esi, dword [esp + 0x10]
cmp word [esi + 0xec], 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x74], 0x239d330
mov dword [esp + 0x78], 0x239d570
mov dword [esp + 0x7c], 0x239d5a0
mov dword [esp + 0x80], 0x239d5d0
mov dword [esp + 0x84], 0x239d670
mov dword [esp + 0x88], 0x239d6a0
mov dword [esp + 0x8c], 0x239d790
mov dword [esp + 0x90], 0x239d7d0
mov dword [esp + 0x94], 0x239d810
mov dword [esp + 0x98], 0x239d830
mov dword [esp + 0x9c], ebx
jne 0x10021756
mov eax, esi
call fcn.100213c0
test eax, eax
je 0x10021756
or dword [ebp + 0x140], 4
mov dword [esp + 0x9c], 0x239d850
cmp dword [esp + 0x24], 0x20
jne 0x10021785
mov edx, dword [esi + 0xf0]
mov eax, dword [esi + 0xf4]
mov edi, 0x2409df0
mov ebx, 0x2409df8
mov dword [esp + 0x34], 0x2409e00
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
jmp 0x100217ab
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xf8]
mov edi, 0x2409e08
mov ebx, 0x2409e10
mov dword [esp + 0x34], 0x2409e18
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edx
cmp dword [ebp + 0x34], ebp
jne 0x10021841
lea eax, [esp + 0x74]
push ebp
push eax
call fcn.1002a5d0
add esp, 8
mov dword [ebp + 0x144], eax
test eax, eax
jne 0x100217e7
push ebp
call fcn.10024ed0
add esp, 4
call fcn.10036420
mov dword [eax], 8
xor ebp, ebp
jmp 0x10021da5
cmp dword [0x241c318], 0
jne 0x10021813
test dword [esp + 0xb8], 0x4000000
jne 0x10021813
lea ecx, [esp + 0x74]
push ebp
push ecx
mov edi, ebx
call fcn.1002a5d0
add esp, 8
mov dword [ebp + 0x148], eax
cmp dword [ebp + 0x148], 0
jne 0x10021841
test dword [esp + 0xb8], 0x2000000
jne 0x10021841
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x74]
push ebp
push edx
call fcn.1002a5d0
add esp, 8
mov dword [ebp + 0x148], eax
test byte [esp + 0xb8], 1
jne 0x10021855
mov esi, 0xfffffff9
jmp 0x10021953
push 0
push 2
push 2
push 0
push 0x2408d4c
push ebp
call fcn.1001e7a0
add esp, 0x18
mov dword [ebp + 0xc0], eax
test eax, eax
jne 0x10021885
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
push eax
mov eax, dword [eax + 8]
call eax
add esp, 4
push 0
push 2
push 2
push 0xffffffffffffffff
push 0x2409d74
push ebp
call fcn.1001e7a0
push 0
push 2
push 2
push 0
push 0x2408d40
push ebp
mov dword [ebp + 0xcc], eax
call fcn.1001e7a0
add esp, 0x30
mov dword [ebp + 0xc4], eax
test eax, eax
jne 0x100218d7
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
push 0
push 0
push 0x2409e20
push eax
call edx
add esp, 0x10
mov dword [ebp + 0x180], eax
or eax, edx
mov dword [ebp + 0x184], edx
jne 0x1002190b
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
mov eax, dword [ebp + 0xc4]
mov ecx, dword [eax + 8]
push eax
call ecx
mov ecx, dword [ebp + 0xcc]
add esp, 4
test ecx, ecx
je 0x10021934
mov edx, dword [ebp + 0xc4]
push edx
push ebp
call fcn.10021030
add esp, 8
mov esi, ebp
call fcn.10021370
test eax, eax
jne 0x1002194f
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0xc0]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
push 0
push 0
push 0x2409e30
push eax
call edx
add esp, 0x10
mov dword [ebp + 0x178], eax
or eax, edx
mov dword [ebp + 0x17c], edx
jne 0x1002198d
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xac]
push 1
push 0
push esi
push ecx
push edx
push ebp
call fcn.10016700
add esp, 0x18
mov dword [ebp + 0xbc], eax
test eax, eax
jne 0x100219c2
push ebp
call fcn.10024ed0
add esp, 4
xor ebp, ebp
jmp 0x10021da5
mov edi, dword [eax + 0x30]
mov esi, dword [eax + 0x34]
mov ebx, dword [esp + 0xb8]
mov eax, ebx
and eax, 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
je 0x100219e9
mov eax, ebp
call fcn.10020480
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
shr ebx, 0x1b
and ebx, 1
push ebx
push 1
push eax
mov eax, dword [edx + 0xb8]
push ecx
push 0
xor ecx, ecx
add eax, edi
push 0
adc ecx, esi
push ecx
push eax
push ebp
call fcn.1001e4e0
mov ebx, eax
add esp, 0x24
test ebx, ebx
jne 0x10021a3c
push ebp
call fcn.10024ed0
add esp, 4
call fcn.10036420
mov dword [eax], 8
xor ebp, ebp
jmp 0x10021da5
cmp dword [esp + 0x14], 0
je 0x10021a4e
push ebx
mov ecx, ebp
call fcn.100205a0
add esp, 4
mov esi, ebp
call fcn.10020970
mov ecx, dword [ebp + 0xbc]
cmp dword [ecx + 0x4c], 0
je 0x10021bdd
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp dword [esp + 0x24], 0x20
setne al
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ecx, dword [ecx + 0x4c]
mov edx, dword [ebp + 0x20]
lea eax, [eax*4 + 4]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
xor eax, eax
add ecx, edi
adc eax, esi
push eax
push ecx
mov ecx, dword [edx + 0xc]
push ebp
call ecx
mov ecx, dword [esp + 0x28]
add esp, 0x14
cmp eax, ecx
jne 0x10021bdd
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
je 0x10021bdd
test dword [ebp + 0x4c], 0x80000000
je 0x10021b4c
mov eax, ecx
cdq
add dword [ebx + 0x254], eax
mov dword [ebx + 0x23c], edi
mov dword [ebx + 0x240], esi
adc dword [ebx + 0x258], edx
mov dword [ebx + 0x244], 1
mov dword [ebx + 0x248], 0
mov eax, dword [ebp + 0xbc]
mov ecx, dword [eax + 0x4c]
xor edx, edx
add ecx, edi
adc edx, esi
mov dword [ebx + 0x274], ecx
mov dword [ebx + 0x278], edx
mov ecx, dword [ebp + 0x174]
mov edx, dword [ebp + 0x170]
mov eax, dword [ebx + 0x3d0]
mov eax, dword [eax]
push ecx
push edx
push ebx
call eax
mov ecx, dword [ebp + 0x160]
mov dword [ebx + 0x2b4], ecx
mov edx, dword [ebp + 0x164]
mov dword [ebx + 0x2b8], edx
jmp 0x10021bd2
lea eax, [ecx*4]
cdq
add dword [ebx + 0x254], eax
adc dword [ebx + 0x258], edx
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ecx + 0x4c]
mov eax, dword [ebx + 0x3d0]
xor ecx, ecx
add edx, edi
adc ecx, esi
push ecx
push edx
mov edx, dword [eax]
push ebx
call edx
mov eax, dword [ebx + 0x3d0]
mov ecx, dword [eax]
add esp, 0xc
push 0
push 1
push ebx
call ecx
mov edx, dword [ebx + 0x3d0]
mov eax, dword [edx]
add esp, 0xc
push esi
push edi
push ebx
call eax
mov edx, dword [ebp + 0x174]
mov eax, dword [ebp + 0x170]
mov ecx, dword [ebx + 0x3d0]
mov ecx, dword [ecx]
add esp, 0xc
push edx
push eax
push ebx
call ecx
mov edx, dword [ebp + 0x160]
mov dword [ebx + 0x2b4], edx
mov eax, dword [ebp + 0x164]
mov dword [ebx + 0x2b8], eax
add esp, 0xc
mov dword [esp + 0x38], 1
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x10021c16
test dword [esi + 0x48], 0x80000000
jne 0x10021c16
mov ecx, dword [ebp + 8]
push ebp
call ecx
mov edx, dword [esi + 0xe4]
lea ecx, [esi + 0xe0]
lea eax, [ebp + 0xf0]
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 4
mov dword [edx], eax
mov eax, dword [ebp + 0x34]
cmp eax, ebp
je 0x10021c49
mov edx, dword [eax + 0xec]
lea ecx, [eax + 0xe8]
lea eax, [ebp + 0xf8]
mov dword [ecx + 4], eax
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [edx], eax
mov edx, dword [ebp + 0x34]
add edx, 0xd4
push edx
call dword [0x23d60dc]
cmp dword [esp + 0xbc], 0
je 0x10021c87
mov esi, dword [esp + 0xbc]
jmp 0x10021c9e
push esi
call fcn.100559bb
add esp, 4
mov dword [ebp + 0x50], eax
test eax, eax
jne 0x10021c49
push ebp
call fcn.10024ed0
add esp, 4
call fcn.10036420
mov dword [eax], 0xc
xor ebp, ebp
jmp 0x10021da5
cmp dword [esp + 0xa8], 0
je 0x10021cab
mov esi, dword [esp + 0xa8]
add esi, 0x324c
mov ecx, 0xb
lea edi, [ebp + 0x324c]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x10021d5d
push ebx
push ebp
call fcn.1001cd60
mov esi, dword [ebp + 0xbc]
mov eax, 0x5000
mov ecx, ebx
call fcn.1001d1a0
push ebx
push ebp
call fcn.1001d1c0
add esp, 0x10
cmp dword [esp + 0x38], 0
je 0x10021d5d
test dword [esp + 0xb8], 0x10000000
je 0x10021d5d
mov edi, dword [esp + 0x28]
mov eax, edi
or eax, dword [esp + 0x2c]
je 0x10021d5d
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10021d5d
mov ecx, dword [ebx + 0x3d0]
mov edx, dword [ecx + 8]
push 0x200
push ebx
call edx
add esp, 8
cmp eax, 0x10001016
jne 0x10021d5d
lea ecx, [ecx]
mov eax, dword [esi + 0xb8]
mov edx, dword [ebx + 0x2b4]
xor ecx, ecx
add eax, edi
adc ecx, dword [esp + 0x2c]
cmp edx, eax
jne 0x10021d42
mov eax, dword [ebx + 0x2b8]
cmp eax, ecx
je 0x10021d5d
mov ecx, dword [ebx + 0x3d0]
mov edx, dword [ecx + 8]
push 0x200
push ebx
call edx
add esp, 8
cmp eax, 0x10001016
je 0x10021d20
mov eax, ebp
call fcn.10020db0
cmp dword [ebp + 0x34], ebp
jne 0x10021d8d
or eax, 0xffffffff
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x40]
push ecx
push ebp
call edx
add esp, 8
mov eax, dword [esp + 0xa4]
or dword [ebp + 0x140], 1
add eax, 4
push eax
call dword [0x23d60dc]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10021db6
mov ecx, dword [eax + 8]
push eax
call ecx
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
call fcn.10036420
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
xor eax, eax
pop ebx
add esp, 0x90
ret