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

Disassembly:
sub esp, 0x18c
push ebx
push ebp
push esi
xor ebx, ebx
lea ecx, [esp + 0x5c]
push edi
mov dword [esp + 0x10], ebx
call fcn.021ee4f0
mov eax, dword [0x1010955c]
push 0x44
push dword [esp + 0x1c8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x160]
push eax
call fcn.02231930
mov edi, dword [esp + 0x1c4]
add esp, 0xc
mov esi, dword [esp + 0x1a8]
and edi, 0xfff7ffff
mov dword [esp + 0x158], 0x44
xor ebp, ebp
mov dword [esp + 0x24], edi
mov ecx, dword [0x10109818]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x22072a1
push 0x100fcb88
push ebp
push 0x100fcb74
push 0x100f7164
push 4
lea ecx, [esp + 0x160]
call fcn.021776c0
mov ecx, eax
call fcn.02179a10
mov ecx, eax
call fcn.021798e0
mov ecx, eax
call fcn.02179950
lea ecx, [esp + 0x14c]
call fcn.021796e0
inc ebp
mov dword [esp + 0x5c], ebp
cmp ebp, 5
jg 0x2207ea9
mov eax, dword [esp + 0x1a0]
mov eax, dword [eax + 0x58]
cmp ebp, 4
jne 0x22072ff
mov ecx, dword [0x10109818]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x22072fa
push 0x100fcbf0
push 0x100f7164
push ebp
lea ecx, [esp + 0xf4]
call fcn.021776c0
mov ecx, eax
call fcn.02179a10
lea ecx, [esp + 0xe8]
call fcn.021796e0
mov eax, 1
push dword [esp + 0x1d0]
lea ecx, [esp + 0xf8]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
push edi
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
call fcn.0220d780
lea eax, [esp + 0xf4]
push eax
push esi
push dword [esp + 0x1ac]
call fcn.02208f90
mov ecx, dword [0x10109818]
add esp, 0xc
mov eax, dword [ecx]
push dword [esp + 0x130]
call dword [eax + 0x80]
test eax, eax
jne 0x2207e46
mov ecx, dword [esp + 0x140]
cmp dword [esp + 0x114], eax
je 0x2207712
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x22073bb
push eax
lea ecx, [esp + 0x64]
call fcn.021ee530
lea ecx, [esp + 0xf4]
call fcn.0220dfb0
jmp 0x2207250
cmp ecx, 2
jne 0x2207705
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.0216b480
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x34]
push eax
push 0x100fac48
call fcn.02234dc0
push dword [esp + 0x3c]
lea eax, [esp + 0xe8]
push eax
call fcn.02234bd0
add esp, 0x10
mov edi, dword [eax]
test edi, edi
jne 0x220742e
push edi
lea ecx, [esp + 0x38]
call fcn.0216b480
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
jmp 0x2207471
xor ecx, ecx
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x220744b
lea esp, [esp]
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x2207440
push esi
lea ecx, [esp + 0x38]
call fcn.0216b480
lea eax, [esi*2 + 2]
push eax
push edi
push dword [esp + 0x3c]
call fcn.0223d930
mov esi, dword [esp + 0x1b4]
add esp, 0xc
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x22074a6
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.0216b480
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x34]
test esi, esi
jne 0x22075b7
push 0x100eff98
push dword [esp + 0x1a8]
push 0x100fac58
push eax
lea eax, [esp + 0x74]
push eax
call fcn.02165920
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
call fcn.02165920
add esp, 0xc
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.02165920
add esp, 0xc
lea ecx, [esp + 0x50]
push dword [eax]
call fcn.02167bc0
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x2207553
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x2207588
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x2207654
push eax
call fcn.02231820
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
jmp 0x2207651
push esi
push 0x100fccac
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.02165920
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.02165920
add esp, 0xc
lea ecx, [esp + 0x50]
push dword [eax]
call fcn.02167bc0
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x220761f
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x2207654
push eax
call fcn.02231820
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
add esp, 4
push dword [esp + 0x1c8]
mov ecx, dword [0x1010955c]
lea eax, [esp + 0x15c]
mov esi, dword [esp + 0x54]
add ecx, 0x116c
push eax
push dword [esp + 0x1c8]
mov eax, dword [esp + 0x30]
push dword [esp + 0x1c8]
or eax, 4
push eax
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push 0
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x30], ebp
test esi, esi
je 0x22076d3
push esi
call fcn.02231820
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x22077f3
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
jmp 0x22077f3
mov dword [esp + 0x30], 1
jmp 0x22077fb
mov eax, dword [esp + 0x1cc]
test eax, eax
je 0x220777d
cmp dword [eax], 3
jne 0x220777d
push dword [esp + 0x1c8]
mov ecx, dword [0x1010955c]
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1c8]
mov eax, edi
add ecx, 0x116c
push dword [esp + 0x1c8]
or eax, 4
push eax
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x30], ebp
jmp 0x22077f3
push dword [esp + 0x1c8]
mov edi, dword [esp + 0x4c]
push dword [esp + 0x1c8]
mov ecx, dword [0x1010955c]
push dword [esp + 0x1c8]
mov edx, dword [edi + 0x30]
push dword [esp + 0x1c8]
mov eax, dword [ecx + 0x116c]
neg edx
sbb edx, edx
add ecx, 0x116c
and edx, 4
or edx, dword [esp + 0x1c8]
push edx
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
cmp dword [edi + 0x30], 0
mov ebp, eax
mov dword [esp + 0x30], ebp
je 0x2207e9b
test ebp, ebp
je 0x2207e33
mov eax, dword [esp + 0x1b8]
shr eax, 2
and eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c8]
push dword [eax]
call dword [0x100df260]
push eax
call fcn.022337c0
mov ecx, dword [esp + 0x1c8]
add esp, 8
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x220784a
push ecx
lea eax, [esp + 0x74]
or ebx, 1
push eax
mov dword [esp + 0x18], ebx
call fcn.022353d0
add esp, 8
jmp 0x2207861
lea eax, [esp + 0xb8]
or ebx, 2
push eax
mov dword [esp + 0x14], ebx
call fcn.02234cb0
add esp, 4
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
jne 0x2207895
mov eax, pe_nt_image_headers32
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.02231830
push edi
mov ebp, eax
call fcn.02231820
add esp, 8
xor eax, eax
mov word [ebp], ax
jmp 0x22078e2
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x22078ab
mov edi, edi
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x22078a0
xor ecx, ecx
lea eax, [esi + 0x100]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.02231830
push 0
mov ebp, eax
call fcn.02231820
lea eax, [esi*2 + 2]
push eax
push edi
push ebp
call fcn.0223d930
add esp, 0x14
test bl, 2
je 0x2207923
mov eax, dword [esp + 0xb8]
and ebx, 0xfffffffd
mov dword [esp + 0x10], ebx
test eax, eax
je 0x2207923
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
test bl, 1
je 0x2207958
mov eax, dword [esp + 0x70]
and ebx, 0xfffffffe
mov dword [esp + 0x10], ebx
test eax, eax
je 0x2207958
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x140]
xor esi, esi
mov eax, dword [esp + 0x118]
mov dword [esp + 0x1c], esi
cmp ecx, 1
jne 0x22079d3
push eax
lea eax, [esp + 0x80]
push eax
call fcn.022353d0
lea ecx, [esp + 0x24]
push ecx
push dword [eax]
call fcn.022197b0
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x7c]
sete byte [esp + 0x1b]
test eax, eax
je 0x22079b8
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x1b], al
mov ecx, dword [esp + 0x140]
cmovne esi, eax
mov eax, dword [esp + 0x118]
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x124]
mov dword [esp + 0x1c], 0
je 0x2207b0d
cmp ecx, 1
jne 0x2207a33
mov ecx, dword [esp + 0x1c4]
or ebx, 4
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x24], edi
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ebx
call fcn.022353d0
mov ecx, dword [esp + 0x148]
add esp, 8
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x2207a59
mov eax, dword [esp + 0x1c8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1d0]
cmp ecx, 1
sete bl
xor eax, eax
cmp ecx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x68]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x1f0]
push ebx
push dword [esp + 0x58]
push ebp
push dword [esp + 0x54]
push dword [esp + 0x60]
push ebx
push dword [esp + 0x54]
push dword [eax]
call fcn.0220fb90
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 4
je 0x2207c2a
mov ecx, dword [esp + 0x94]
and ebx, 0xfffffffb
test ecx, ecx
je 0x2207c2a
push ecx
call fcn.02231820
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
jmp 0x2207c27
cmp ecx, 1
jne 0x2207b53
mov ecx, dword [esp + 0x1c4]
or ebx, 8
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x2c], edi
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
call fcn.022353d0
mov ecx, dword [esp + 0x148]
add esp, 8
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x2207b79
mov eax, dword [esp + 0x1c8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
push dword [esp + 0x1d0]
xor ebx, ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1d4]
cmp ecx, 1
sete bl
xor eax, eax
cmp ecx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x6c]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x1f4]
push ebx
push dword [esp + 0x44]
push ebp
push dword [esp + 0x60]
push dword [esp + 0x5c]
push ebx
push dword [esp + 0x70]
push dword [eax]
call fcn.02203730
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 8
je 0x2207c2a
mov eax, dword [esp + 0xac]
and ebx, 0xfffffff7
test eax, eax
je 0x2207c2a
push eax
call fcn.02231820
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
add esp, 4
test esi, esi
jne 0x2207d77
cmp dword [esp + 0x140], 1
jne 0x2207d5d
mov eax, dword [esp + 0x1c8]
push 0xffffffffffffffff
push dword [eax]
call dword [0x100df1b4]
mov ecx, dword [0x1010955c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov ecx, dword [0x1010955c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x2207d52
test ebp, ebp
je 0x2207ca2
push ebp
call fcn.02231820
add esp, 4
mov eax, dword [esp + 0x130]
test eax, eax
je 0x2207cd7
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
test edi, edi
je 0x2207d05
push edi
call fcn.02231820
add esp, 4
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov eax, dword [esp + 0x118]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x1a8]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x2207250
push eax
call fcn.02231820
add esp, 4
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
jmp 0x2207250
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x2207e11
cmp dword [esp + 0x40], 0
jne 0x2207e11
mov eax, dword [esp + 0x1c8]
push dword [eax + 4]
jmp 0x2207e0b
cmp dword [esp + 0x140], 1
jne 0x2207dca
cmp dword [esp + 0x40], 0
mov esi, dword [esp + 0x4c]
jne 0x2207d93
push esi
call dword [0x100df1c8]
mov ecx, dword [0x1010955c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov eax, dword [esp + 0x1c8]
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x1c8]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jmp 0x2207e11
mov ecx, dword [0x1010955c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x1c8]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jne 0x2207e11
push edx
call dword [0x100df1c8]
test ebp, ebp
je 0x2207e1e
push ebp
call fcn.02231820
add esp, 4
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0xf4]
call fcn.0220dfb0
jmp 0x2207f11
lea ecx, [esp + 0xf4]
xor ebp, ebp
call fcn.0220dfb0
jmp 0x2207f11
push dword [esp + 0x1c8]
mov ecx, dword [0x1010955c]
push dword [esp + 0x1c8]
add ecx, 0x116c
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
mov ebp, eax
lea ecx, [esp + 0xf4]
call fcn.0220dfb0
jmp 0x2207f11
mov ecx, dword [0x10109818]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x2207f0f
push 0x100fcbd4
push 5
push 0x100fcbc0
push ebp
push 0x100fcb9c
push 0x100f7164
push 4
lea ecx, [esp + 0x104]
call fcn.021776c0
mov ecx, eax
call fcn.02179a10
mov ecx, eax
call fcn.021798e0
mov ecx, eax
call fcn.02179950
mov ecx, eax
call fcn.021798e0
mov ecx, eax
call fcn.02179950
lea ecx, [esp + 0xe8]
call fcn.021796e0
xor ebp, ebp
lea ecx, [esp + 0x60]
call fcn.021ee500
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18c
ret 0x34