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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58833f
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5e5c10]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
mov edx, dword [ebp + 8]
test edx, edx
js 0x4224be
cmp edx, dword [ecx + 0x160]
jge 0x4224be
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4224be
cmp eax, dword [ecx + 0x168]
jge 0x4224be
cmp dword [ecx + 0xfc], 0
je 0x4224be
push eax
push edx
call fcn.0041d160
test eax, eax
je 0x42244d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test al, 8
jne 0x4224be
mov esi, dword [ebp + 0x10]
push 0
push 1
mov ecx, esi
call fcn.004700f6
test eax, eax
je 0x4224be
push 0
push 1
mov ecx, esi
call fcn.004701a4
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push 0
push edi
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [esp + 0x7c]
call fcn.0046fcb1
push edi
mov dword [esp + 0xac], 0
call ebx
push eax
call fcn.00456d04
mov esi, eax
add esp, 4
test esi, esi
jne 0x4224d8
lea ecx, [esp + 0x70]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00470035
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call ebx
push eax
push esi
lea ecx, [esp + 0x78]
call fcn.0046fdfe
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea ecx, [esp + 0x38]
call fcn.00415f60
push esi
mov byte [esp + 0xac], 1
call fcn.00456cf9
add esp, 4
lea esi, [esp + 0x34]
call fcn.004307f0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.0040c280
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x1c]
mov byte [esp + 0xa8], 2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x18]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
mov dword [esp + 0x28], 0
jge 0x422579
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
mov eax, 0x5b8654
jmp 0x4225d8
push 0x5b9d54
push esi
call fcn.00560b94
add esp, 8
test eax, eax
jne 0x42259a
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
mov eax, 0x5b8654
jmp 0x4225d8
sub eax, esi
sar eax, 1
mov dword [esp + 0x24], eax
jns 0x4225af
mov ebx, dword [esp + 0x14]
mov eax, 0x5b8654
jmp 0x4225d8
mov eax, dword [esp + 0x24]
inc eax
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x20]
call fcn.004183c0
mov byte [esp + 0xa8], 3
mov ebx, dword [esp + 0x14]
mov eax, dword [eax]
or ebx, 1
mov dword [esp + 0x14], ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00401990
mov dword [esp + 0xa8], 5
test bl, 1
je 0x422619
mov eax, dword [esp + 0x6c]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jl 0x422671
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x20]
call fcn.00415630
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac], 6
call fcn.0040c2f0
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42266d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x5b9d58
push esi
call fcn.005620b1
add esp, 8
test eax, eax
jne 0x422837
mov dword [esp + 0x30], 0xffffffff
lea eax, [esi - 0x10]
push eax
call fcn.0040c280
add eax, 0x10
add esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xa8], 8
or ebx, 4
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0x18], ebx
call fcn.0040c280
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xa8], 0xa
test bl, 4
je 0x422704
mov eax, dword [esp + 0x3c]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0xb
test bl, 2
je 0x422738
mov eax, dword [esp + 0x58]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422738
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
add ebx, dword [esp + 0x2c]
mov eax, dword [edi + 0x160]
mov dword [esp + 0x38], ebx
cmp ebx, eax
jge 0x422780
mov ecx, 1
test ebx, ebx
js 0x422772
cmp ebx, eax
jge 0x422772
cmp ebx, dword [edi + 0x178]
jge 0x422be7
mov edx, dword [edi + 0x174]
cmp dword [edx + ebx*4], 0
jg 0x422780
add dword [esp + 0x2c], ecx
add ebx, ecx
mov dword [esp + 0x38], ebx
cmp ebx, eax
jl 0x422752
cmp dword [esi - 0xc], 0
je 0x422b3b
lea ebx, [ebx]
mov esi, dword [esp + 0x28]
add esi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x168]
cmp esi, ecx
jge 0x4227dd
test esi, esi
js 0x4227d4
cmp esi, ecx
jge 0x4227d4
mov edx, dword [edi + 0x4fc]
lea eax, [edx + esi*4]
mov eax, dword [eax]
test eax, eax
js 0x422be7
cmp eax, dword [edi + 0x18c]
jge 0x422be7
mov edx, dword [edi + 0x188]
cmp dword [edx + eax*4], 0
jg 0x4227dd
inc dword [esp + 0x28]
inc esi
cmp esi, ecx
jl 0x4227a1
test ebx, ebx
js 0x42288f
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 0x160]
jge 0x42288f
test esi, esi
js 0x42288f
cmp esi, ecx
jge 0x42288f
lea ecx, [esp + 0x20]
call fcn.0040b760
lea ecx, [esp + 0x20]
call fcn.0040b6e0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push ecx
push ebx
mov ecx, esi
call fcn.00421e10
push esi
push ebx
mov ecx, edi
call fcn.0041d160
test eax, eax
jne 0x422864
jmp 0x42286d
sub eax, esi
sar eax, 1
mov dword [esp + 0x30], eax
js 0x42268f
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00415630
mov byte [esp + 0xa8], 7
or ebx, 2
jmp 0x4226b4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
and eax, 0xfffffffd
push eax
push esi
push ebx
mov ecx, edi
push ecx
call fcn.004265a0
cmp ebx, dword [esp + 0x4c]
jle 0x422885
mov dword [esp + 0x4c], ebx
cmp esi, dword [esp + 0x50]
jle 0x42288f
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x30]
test eax, eax
js 0x4228b6
inc eax
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x20]
call fcn.004183c0
mov byte [esp + 0xa8], 0xc
or dword [esp + 0x14], 8
jmp 0x4228d4
push 0x5b8654
lea ecx, [esp + 0x68]
call fcn.00401990
mov dword [esp + 0xa8], 0xd
or dword [esp + 0x14], 0x10
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x42292f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x422921
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x422921
push ecx
call fcn.0040c280
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x422914
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
jmp 0x42292f
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401d10
mov dword [esp + 0xa8], 0xc
test byte [esp + 0x14], 0x10
je 0x422966
mov eax, dword [esp + 0x64]
and dword [esp + 0x14], 0xffffffef
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa8], 0xb
test byte [esp + 0x14], 8
je 0x42299d
mov eax, dword [esp + 0x5c]
and dword [esp + 0x14], 0xfffffff7
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42299d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x5b9d58
push esi
call fcn.005620b1
add esp, 8
test eax, eax
jne 0x4229e1
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x422a09
cmp eax, dword [esi - 0x10]
jne 0x422a09
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x422a41
sub eax, esi
sar eax, 1
mov dword [esp + 0x30], eax
js 0x4229bb
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x20]
call fcn.00415630
mov byte [esp + 0xa8], 0xe
or dword [esp + 0x14], 0x20
jmp 0x422a5c
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x422bec
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.005601aa
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x54], edi
mov dword [esp + 0xa8], 0xf
or dword [esp + 0x14], 0x40
lea eax, [esp + 0x54]
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x422ab7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x422aa9
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x422aa9
push ecx
call fcn.0040c280
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x422a9c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x38]
jmp 0x422ab7
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00401d10
mov dword [esp + 0xa8], 0xe
test byte [esp + 0x14], 0x40
je 0x422aee
mov eax, dword [esp + 0x54]
and dword [esp + 0x14], 0xffffffbf
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa8], 0xb
test byte [esp + 0x14], 0x20
je 0x422b25
mov eax, dword [esp + 0x60]
and dword [esp + 0x14], 0xffffffdf
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
inc dword [esp + 0x28]
cmp dword [ecx - 0xc], 0
mov edi, dword [esp + 0x1c]
jne 0x422790
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c2f0
inc dword [esp + 0x2c]
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jge 0x422555
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 4]
test ecx, ecx
jns 0x422bc0
inc ecx
mov dword [eax - 4], ecx
jne 0x422bc0
mov dword [eax - 4], 1
cmp dword [ebp + 0x14], 0
je 0x422bf1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push 1
push 1
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
mov esi, edi
call fcn.004216b0
jmp 0x422c01
call fcn.004572d6
call fcn.00415c30
mov edi, dword [esp + 0x1c]
call fcn.00423ef0
mov ecx, edi
call fcn.00427540
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422c29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422c51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x70]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00470035
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10