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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cbc4a
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x510a50]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x14]
add eax, 4
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dword [esp + 0x48], 1
mov dword [esp + 0x90], edi
mov eax, dword [esi + 0x14]
mov dword [eax], 1
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 4]
mov dword [esp + 0x20], edi
sar ecx, 2
test ecx, ecx
je 0x4262df
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc8]
mov dword [esp + 0x20], ecx
call fcn.00467e07
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4262f9
push 0x80004005
call fcn.004017c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x90], 1
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 4]
mov dword [esp + 0x1c], edi
test ecx, 0xfffffffc
jle 0x426501
jmp 0x426330
cmp dword [ebx - 0xc], 0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
mov edi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x42638f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x426369
cmp dword [ebx - 8], 0
jl 0x4266b9
mov dword [ebx - 0xc], 0
mov byte [ebx], 0
jmp 0x42638f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42637f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x94], 0x10
lea eax, [esi + 0x80]
jb 0x4263a0
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push 5
mov ecx, eax
call fcn.00432780
mov ebx, dword [esp + 0x34]
add esp, 8
test eax, eax
je 0x42643d
cmp dword [ebx - 0xc], 0
jl 0x42643d
push 0x4f595c
push ebx
call fcn.0048620c
add esp, 8
test eax, eax
je 0x42643d
sub eax, ebx
test eax, eax
jle 0x42643d
mov eax, ebx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4263f5
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x6c]
call fcn.00404e60
lea edx, [esp + 0x64]
push edx
lea edi, [esi + 0x10]
mov byte [esp + 0x94], 2
call fcn.004261e0
add esp, 4
mov byte [esp + 0x90], 1
cmp dword [esp + 0x78], 0x10
jb 0x42643d
mov eax, dword [esp + 0x64]
push eax
call fcn.00460bb0
add esp, 4
cmp dword [esi + 0x20], 0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xcc], ecx
je 0x4266c3
mov eax, dword [esi + 0xc8]
test eax, eax
jns 0x426463
neg eax
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0xd4]
test eax, eax
jns 0x426475
neg eax
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xd0]
test eax, eax
jns 0x426487
neg eax
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0xe4]
test eax, eax
jns 0x426499
neg eax
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0xdc]
test eax, eax
jns 0x4264ab
neg eax
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0xd8]
test eax, eax
jns 0x4264bd
neg eax
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0xc4]
test eax, eax
jns 0x4264cf
neg eax
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0xe0]
test eax, eax
jns 0x4264e1
neg eax
mov dword [esi + 0xe0], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 8]
sub edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
inc eax
sar edx, 2
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x426330
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 8]
je 0x4267eb
mov edx, eax
add edx, 4
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x4267cd
lea esi, [eax + 0x48]
lea edi, [esp + 0x58]
call fcn.00413e90
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov ecx, 0x4f5c04
cmp eax, esi
je 0x4267cd
nop
cmp ecx, 0x4f5c07
je 0x426574
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4267cd
inc eax
inc ecx
cmp eax, esi
jne 0x426550
cmp ecx, 0x4f5c07
jne 0x4267cd
cmp eax, esi
jne 0x4267cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 8]
je 0x4267cd
call fcn.0049f8b7
mov ebx, eax
mov dword [esp + 0x60], ebx
call fcn.0049f732
push 0
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0049f667
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x4265ba
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x3c]
call fcn.0049f68f
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, dword [eax]
mov esi, dword [edx]
or dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [esp + 0x58], esp
push 0
lea ecx, [esp + 0x40]
add esi, 0x10
mov dword [eax], ebx
call fcn.0049f667
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4265ff
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x3c]
call fcn.0049f68f
push esi
lea ecx, [edi + 0x10]
call fcn.00426c80
add esp, 8
test al, al
je 0x4266f9
call fcn.0049f8b7
mov edi, eax
mov dword [esp + 0x40], edi
call fcn.0049f732
push 0
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.0049f667
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x426645
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x30]
call fcn.0049f68f
mov dword [esp + 0x90], 4
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
or dword [esp + 0x18], 2
push ecx
mov eax, esp
mov dword [esp + 0x58], esp
push 0
lea ecx, [esp + 0x54]
mov dword [eax], edi
call fcn.0049f667
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x426684
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x50]
call fcn.0049f68f
lea ecx, [esi + 0x48]
call fcn.00426df0
add esp, 4
test al, al
jne 0x4266b2
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
add eax, 0x48
cmp dword [eax + 0x14], 0x10
jb 0x4266ad
mov eax, dword [eax]
cmp byte [eax], 0x35
jge 0x4266fd
mov byte [esp + 0x17], 1
jmp 0x426702
push 0x80070057
call fcn.004017c0
add ebx, 0xfffffff0
mov byte [esp + 0x90], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4266e7
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor eax, eax
jmp 0x426823
mov edi, dword [esp + 0x40]
mov byte [esp + 0x17], 0
mov dword [esp + 0x90], 3
test byte [esp + 0x18], 2
je 0x426758
and dword [esp + 0x18], 0xfffffffd
test edi, edi
je 0x426758
push 0
lea ecx, [esp + 0x54]
call fcn.0049f667
mov eax, dword [edi + 4]
test eax, eax
je 0x426738
cmp eax, 0xffffffff
jae 0x426738
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x50]
not esi
call fcn.0049f68f
and esi, edi
je 0x426758
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x90], 1
test byte [esp + 0x18], 1
je 0x4267aa
and dword [esp + 0x18], 0xfffffffe
push 0
lea ecx, [esp + 0x38]
call fcn.0049f667
mov eax, dword [ebx + 4]
test eax, eax
je 0x42678a
cmp eax, 0xffffffff
jae 0x42678a
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x34]
not esi
call fcn.0049f68f
and esi, ebx
je 0x4267aa
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [esp + 0x17], 0
jne 0x426844
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 8]
jne 0x426591
mov esi, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x24], eax
add dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 8]
jne 0x426520
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, dword [esp + 0x24]
push edx
push ecx
push eax
call fcn.00484c20
add esp, 0xc
add dword [esi + 8], 0xfffffffc
jmp 0x4267de