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

Disassembly:
push 0xffffffffffffffff
push 0x4b0d48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x48]
lea eax, [ebx + 0x30]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x40], 0
cmp esi, 0x10
jne 0x4401fd
mov esi, dword [ebx + 0x54]
cmp esi, dword [ebx + 0x58]
jbe 0x4400ee
call fcn.00490387
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x18], edi
mov ebp, esi
mov esi, dword [ebx + 0x58]
cmp dword [ebx + 0x54], esi
jbe 0x440104
call fcn.00490387
mov eax, dword [ebx + 0x48]
test edi, edi
je 0x44010f
cmp edi, eax
je 0x440114
call fcn.00490387
cmp ebp, esi
je 0x44093e
test edi, edi
jne 0x4401eb
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x440135
call fcn.00490387
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x4401c2
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4401f2
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x440160
call fcn.00490387
mov esi, dword [ebp + 4]
mov eax, dword [ebp]
test esi, esi
je 0x440176
lea ecx, [esi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 1
mov edi, dword [esp + 0x4c]
lea ebx, [esp + 0x20]
call fcn.00443c00
mov byte [esp + 0x40], 0
test esi, esi
je 0x4401c2
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4401c2
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4401c2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4401f9
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4401db
call fcn.00490387
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
add ebp, 8
jmp 0x4400f7
mov eax, dword [edi]
jmp 0x44012b
mov eax, dword [eax]
jmp 0x440156
mov eax, dword [eax]
jmp 0x4401d1
cmp esi, 8
jne 0x440343
mov esi, dword [ebx + 0xbc]
cmp esi, dword [ebx + 0xc0]
jbe 0x440219
call fcn.00490387
mov edi, dword [esp + 0x48]
mov ebx, dword [edi + 0xb0]
mov dword [esp + 0x18], ebx
mov ebp, esi
lea esp, [esp]
mov esi, dword [edi + 0xc0]
cmp dword [edi + 0xbc], esi
jbe 0x440243
call fcn.00490387
mov eax, dword [edi + 0xb0]
test ebx, ebx
je 0x440251
cmp ebx, eax
je 0x440256
call fcn.00490387
cmp ebp, esi
je 0x44093e
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x440331
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x44027b
call fcn.00490387
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x440308
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x440338
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4402a6
call fcn.00490387
mov esi, dword [ebp + 4]
mov eax, dword [ebp]
test esi, esi
je 0x4402bc
lea ecx, [esi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 2
mov edi, dword [esp + 0x4c]
lea ebx, [esp + 0x20]
call fcn.00443c00
mov byte [esp + 0x40], 0
test esi, esi
je 0x440308
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x440308
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x440308
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x44033f
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x440321
call fcn.00490387
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
add ebp, 8
jmp 0x440230
mov eax, dword [eax]
jmp 0x440271
mov eax, dword [eax]
jmp 0x44029c
mov eax, dword [eax]
jmp 0x440317
cmp esi, 4
jne 0x4404d6
mov esi, dword [ebx + 0xa4]
cmp esi, dword [ebx + 0xa8]
jbe 0x44035f
call fcn.00490387
mov edi, dword [ebx + 0x98]
mov dword [esp + 0x20], edi
mov ebp, esi
jmp 0x440370
mov esi, dword [ebx + 0xa8]
cmp dword [ebx + 0xa4], esi
jbe 0x440383
call fcn.00490387
mov eax, dword [ebx + 0x98]
test edi, edi
je 0x440391
cmp edi, eax
je 0x440396
call fcn.00490387
cmp ebp, esi
je 0x44093e
test edi, edi
jne 0x440410
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4403b3
call fcn.00490387
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x4404ad
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x440414
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4403de
call fcn.00490387
mov edi, dword [ebp + 4]
mov eax, dword [ebp]
test edi, edi
je 0x4403f4
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 3
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x440418
xor ecx, ecx
jmp 0x440420
mov eax, dword [edi]
jmp 0x4403a9
mov eax, dword [eax]
jmp 0x4403d4
mov ecx, dword [edx + 0x14]
sub ecx, eax
sar ecx, 3
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x440459
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
push 1
push esi
call fcn.00444fb0
mov eax, dword [esp + 0x60]
add esp, 0x14
add esi, 8
mov dword [eax + 0x10], esi
jmp 0x44047b
cmp eax, esi
jbe 0x440462
call fcn.00490387
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push esi
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, ecx
call fcn.00443d20
mov byte [esp + 0x40], 0
test edi, edi
je 0x4404ad
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4404ad
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4404ad
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4404d2
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4404c6
call fcn.00490387
mov edi, dword [esp + 0x20]
add ebp, 8
jmp 0x440370
mov eax, dword [eax]
jmp 0x4404bc
cmp esi, 2
jne 0x44062a
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x78]
mov ebx, dword [eax]
mov esi, dword [ecx + 0x60]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov edi, dword [ecx + 0x78]
mov eax, dword [ecx + 0x60]
test esi, esi
je 0x440505
cmp esi, eax
je 0x44050a
call fcn.00490387
cmp ebx, edi
je 0x44093e
test esi, esi
jne 0x44057a
call fcn.00490387
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x440527
call fcn.00490387
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x440610
test esi, esi
jne 0x44057e
call fcn.00490387
cmp ebx, dword [esi + 0x18]
jne 0x44054c
call fcn.00490387
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
test edi, edi
je 0x440562
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x440582
xor ecx, ecx
jmp 0x44058a
mov eax, dword [esi]
jmp 0x44051d
mov esi, dword [esi]
jmp 0x440542
mov ecx, dword [ebp + 0x14]
sub ecx, eax
sar ecx, 3
mov esi, dword [ebp + 0x10]
mov edx, esi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x4405bf
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push esi
call fcn.00444fb0
add esp, 0x14
add esi, 8
mov dword [ebp + 0x10], esi
jmp 0x4405de
cmp eax, esi
jbe 0x4405c8
call fcn.00490387
mov eax, dword [ebp]
push esi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov eax, ebp
call fcn.00443d20
mov byte [esp + 0x40], 0
test edi, edi
je 0x440610
lea edx, [edi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x440610
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x440610
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea esi, [esp + 0x18]
call fcn.0044b5f0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
jmp 0x4404f7
cmp esi, 1
jne 0x4407b0
mov esi, dword [ebx + 0x8c]
cmp esi, dword [ebx + 0x90]
jbe 0x440646
call fcn.00490387
mov edi, dword [esp + 0x48]
mov ebx, dword [edi + 0x80]
mov ebp, esi
mov esi, dword [edi + 0x90]
cmp dword [edi + 0x8c], esi
jbe 0x440665
call fcn.00490387
mov eax, dword [edi + 0x80]
test ebx, ebx
je 0x440673
cmp ebx, eax
je 0x440678
call fcn.00490387
cmp ebp, esi
je 0x44093e
test ebx, ebx
jne 0x4406ee
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x440695
call fcn.00490387
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x44078b
test ebx, ebx
jne 0x4406f2
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4406bc
call fcn.00490387
mov edi, dword [ebp + 4]
mov eax, dword [ebp]
test edi, edi
je 0x4406d2
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 5
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x4406f6
xor ecx, ecx
jmp 0x4406fe
mov eax, dword [ebx]
jmp 0x44068b
mov eax, dword [ebx]
jmp 0x4406b2
mov ecx, dword [edx + 0x14]
sub ecx, eax
sar ecx, 3
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x440737
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push esi
call fcn.00444fb0
mov eax, dword [esp + 0x60]
add esp, 0x14
add esi, 8
mov dword [eax + 0x10], esi
jmp 0x440759
cmp eax, esi
jbe 0x440740
call fcn.00490387
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push esi
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, ecx
call fcn.00443d20
mov byte [esp + 0x40], 0
test edi, edi
je 0x44078b
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44078b
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44078b
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
test ebx, ebx
jne 0x4407ac
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4407a0
call fcn.00490387
mov edi, dword [esp + 0x48]
add ebp, 8
jmp 0x440652
mov eax, dword [ebx]
jmp 0x440796
cmp esi, 0x20
jne 0x44093e
mov esi, dword [ebx + 0xd4]
cmp esi, dword [ebx + 0xd8]
jbe 0x4407cc
call fcn.00490387
mov edi, dword [esp + 0x48]
mov ebx, dword [edi + 0xc8]
mov ebp, esi
jmp 0x4407e0
mov esi, dword [edi + 0xd8]
cmp dword [edi + 0xd4], esi
jbe 0x4407f3
call fcn.00490387
mov eax, dword [edi + 0xc8]
test ebx, ebx
je 0x440801
cmp ebx, eax
je 0x440806
call fcn.00490387
cmp ebp, esi
je 0x44093e
test ebx, ebx
jne 0x44087c
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x440823
call fcn.00490387
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x440919
test ebx, ebx
jne 0x440880
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x44084a
call fcn.00490387
mov edi, dword [ebp + 4]
mov eax, dword [ebp]
test edi, edi
je 0x440860
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 6
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x440884
xor ecx, ecx
jmp 0x44088c
mov eax, dword [ebx]
jmp 0x440819
mov eax, dword [ebx]
jmp 0x440840
mov ecx, dword [edx + 0x14]
sub ecx, eax
sar ecx, 3
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x4408c5
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push esi
call fcn.00444fb0
mov eax, dword [esp + 0x60]
add esp, 0x14
add esi, 8
mov dword [eax + 0x10], esi
jmp 0x4408e7
cmp eax, esi
jbe 0x4408ce
call fcn.00490387
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push esi
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, ecx
call fcn.00443d20
mov byte [esp + 0x40], 0
test edi, edi
je 0x440919
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x440919
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x440919
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
test ebx, ebx
jne 0x44093a
call fcn.00490387
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x44092e
call fcn.00490387
mov edi, dword [esp + 0x48]
add ebp, 8
jmp 0x4407e0
mov eax, dword [ebx]
jmp 0x440924
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8