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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4338c0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x43fc34]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
call fcn.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40912a
push 0x80004005
call fcn.00404f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x80], 0
xor esi, esi
cmp dword [ebx + 0x34], esi
je 0x409d92
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push esi
push ebx
call fcn.004030f0
cmp eax, esi
je 0x409d92
mov edx, dword [ebx + 0x30]
mov ecx, eax
mov edi, eax
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
and edi, 0xffff
shl edi, 5
mov edx, dword [ecx + edi + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x1c], 1
call fcn.00402160
mov byte [esp + 0x80], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x20]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x409209
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4091fb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4091fb
push eax
call fcn.00404fa0
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4091ee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x20], ecx
jmp 0x409209
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00404ee0
mov byte [esp + 0x80], 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 0x409231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x439070
lea ecx, [esp + 0x28]
call fcn.004044f0
call fcn.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x409120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x80], 2
call fcn.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x409120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x3c]
call fcn.0040b0c0
mov byte [esp + 0x80], 4
mov dword [esp + 0x24], 0
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
mov eax, ebx
call fcn.00402420
mov byte [esp + 0x80], 5
mov eax, dword [eax]
lea edx, [edi - 0x10]
lea esi, [eax - 0x10]
mov dword [esp + 0x28], edx
cmp esi, edx
je 0x40937d
cmp dword [edx + 0xc], 0
jl 0x40936b
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x40936b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40930d
cmp eax, dword [esi]
jne 0x40930d
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409341
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x409d8d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
mov eax, dword [esp + 0x28]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x409362
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x409379
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404ee0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
je 0x4099dc
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x4093c9
push 0
lea ecx, [esp + 0x1c]
call fcn.00404e30
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], esp
call fcn.004048c0
mov byte [esp + 0x80], 6
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
je 0x409493
cmp dword [ebx + 0xc], 0
jl 0x409481
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x409481
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40942b
cmp eax, dword [esi]
jne 0x40942b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40945f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x409d8d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0041d7a4
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x409478
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40948f
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ee0
mov edi, dword [esp + 0x14]
mov byte [esp + 0x80], 4
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 0x4094bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x439074
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x409548
mov esi, dword [esp + 0x3c]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4099cc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40952a
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40952a
push eax
call fcn.00404fa0
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x409513
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ebx, dword [ebp + 8]
add edi, 0x10
inc dword [esp + 0x24]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x18]
jmp 0x4092b0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00404ee0
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.name
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x4095d1
mov esi, dword [esp + 0x40]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4099cc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4095b3
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4095b3
push eax
call fcn.00404fa0
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40959c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ebx, dword [ebp + 8]
add edi, 0x10
inc dword [esp + 0x24]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x18]
jmp 0x4092b0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.00404ee0
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.Ads_Url
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40965a
mov esi, dword [esp + 0x44]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4099cc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40963c
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40963c
push eax
call fcn.00404fa0
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x409625
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ebx, dword [ebp + 8]
add edi, 0x10
inc dword [esp + 0x24]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x18]
jmp 0x4092b0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x4c]
call fcn.00404ee0
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.ads_img
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40968a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.toff
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x4096a5
lea ecx, [esp + 0x4c]
jmp 0x4099c2
push str.topentime
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x4096d5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.tgettime
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x409705
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x58]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
push str.tjiange
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x409720
lea ecx, [esp + 0x58]
jmp 0x4099c2
push str.tshu
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x409750
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea ecx, [esp + 0x18]
push str.qudaono
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x40976f
lea ecx, [esp + 0x60]
jmp 0x4099c2
lea eax, [esp + 0x18]
push str.offone
push eax
call fcn.004043d0
add esp, 8
test al, al
je 0x4097a3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x68]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea edx, [esp + 0x18]
push str.taskbar
push edx
call fcn.004043d0
add esp, 8
test al, al
je 0x4097d7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea ecx, [esp + 0x18]
push str.taskbarurl
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x4097f6
lea ecx, [esp + 0x6c]
jmp 0x4099c2
lea eax, [esp + 0x18]
push str.IENAV_PElnkisC
push eax
call fcn.004043d0
add esp, 8
test al, al
je 0x409835
push 0
lea ecx, [esp + 0x18]
call fcn.00404e80
push eax
call fcn.0041dd8d
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
add esp, 4
inc dword [esp + 0x24]
mov dword [0x441054], eax
jmp 0x4092b0
lea ecx, [esp + 0x18]
push str.IENAV_PElnkurl
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x409855
mov ecx, 0x443bcc
jmp 0x4099c2
lea eax, [esp + 0x18]
push str.IENAV_PElnkname
push eax
call fcn.004043d0
add esp, 8
test al, al
je 0x40988a
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x443bd0
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea edx, [esp + 0x18]
push str.IENAV_PElnkico
push edx
call fcn.004043d0
add esp, 8
test al, al
je 0x4098bf
lea eax, [esp + 0x14]
push eax
mov ecx, 0x443bd4
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea ecx, [esp + 0x18]
push str.IENAV_shell
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x4098fe
push 0
lea ecx, [esp + 0x18]
call fcn.00404e80
push eax
call fcn.0041dd8d
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
add esp, 4
inc dword [esp + 0x24]
mov dword [0x441058], eax
jmp 0x4092b0
lea edx, [esp + 0x18]
push str.IENAV_shell_time
push edx
call fcn.004043d0
add esp, 8
test al, al
je 0x40993d
push 0
lea ecx, [esp + 0x18]
call fcn.00404e80
push eax
call fcn.0041dd8d
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
add esp, 4
inc dword [esp + 0x24]
mov dword [0x44105c], eax
jmp 0x4092b0
lea eax, [esp + 0x18]
push str.IENAV_shell_changelist
push eax
call fcn.004043d0
add esp, 8
test al, al
je 0x409972
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x443bd8
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea edx, [esp + 0x18]
push str.IENAV_shell_changeurl
push edx
call fcn.004043d0
add esp, 8
test al, al
je 0x4099a7
lea eax, [esp + 0x14]
push eax
mov ecx, 0x443bdc
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
lea ecx, [esp + 0x18]
push str.IENAV_shell_dellist
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x4099cc
mov ecx, 0x443be0
lea edx, [esp + 0x14]
push edx
call fcn.00405030
inc dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4092b0
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x409c4b
push eax
call fcn.0041dd8d
add esp, 4
test eax, eax
jne 0x409c4b
mov esi, dword [esp + 0x4c]
cmp dword [esi - 0xc], eax
jl 0x409a2a
push 0x43905c
push esi
call fcn.0041f2e6
add esp, 8
test eax, eax
je 0x409a2a
sub eax, esi
cmp eax, 0xffffffff
je 0x409a2a
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], 1
jmp 0x409a2e
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
cmp dword [edx - 0xc], 0
je 0x409a62
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409a56
push 0
lea ecx, [esp + 0x54]
call fcn.00404e30
mov edx, dword [esp + 0x50]
push edx
call fcn.0041dd8d
add esp, 4
mov dword [esi + 8], eax
mov edx, dword [esp + 0x54]
cmp dword [edx - 0xc], 0
je 0x409a96
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409a8a
push 0
lea ecx, [esp + 0x58]
call fcn.00404e30
mov edx, dword [esp + 0x54]
push edx
call fcn.0041dd8d
add esp, 4
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x58]
cmp dword [edx - 0xc], 0
je 0x409aca
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409abe
push 0
lea ecx, [esp + 0x5c]
call fcn.00404e30
mov edx, dword [esp + 0x58]
push edx
call fcn.0041dd8d
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x5c]
cmp dword [edx - 0xc], 0
je 0x409afe
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409af2
push 0
lea ecx, [esp + 0x60]
call fcn.00404e30
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041dd8d
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x60]
cmp dword [ecx - 0xc], 0
je 0x409b65
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0x20]
add edi, 0x20
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x409b65
cmp dword [esi + 0xc], 0
jl 0x409b59
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409b59
push eax
call fcn.00404fa0
mov dword [esp + 0x2c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409b4e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x409b65
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00404ee0
mov esi, dword [esp + 0x64]
cmp dword [esi - 0xc], 0
je 0x409bda
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x409b8d
push 0
lea ecx, [esp + 0x68]
call fcn.00404e30
mov esi, dword [esp + 0x64]
push esi
call fcn.0041dd8d
add esp, 4
test eax, eax
jne 0x409ba3
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x24], eax
jmp 0x409bda
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x409bc1
push 0
lea ecx, [esp + 0x68]
call fcn.00404e30
mov esi, dword [esp + 0x64]
push esi
call fcn.0041dd8d
add esp, 4
cmp eax, 1
jne 0x409bda
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x24], 1
mov esi, dword [esp + 0x70]
cmp dword [esi - 0xc], 0
je 0x409c4b
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x409c02
push 0
lea ecx, [esp + 0x74]
call fcn.00404e30
mov esi, dword [esp + 0x70]
push esi
call fcn.0041dd8d
add esp, 4
test eax, eax
jne 0x409c18
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x28], eax
jmp 0x409c4b
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x409c36
push 0
lea ecx, [esp + 0x74]
call fcn.00404e30
mov esi, dword [esp + 0x70]
push esi
call fcn.0041dd8d
add esp, 4
cmp eax, 1
jne 0x409c4b
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x40]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x409c76
push 0x443940
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040ec60
push 0x443940
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x38]
mov edx, ebx
call fcn.00412480
mov byte [esp + 0x80], 7
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
je 0x409d01
cmp dword [ebx + 0x1c], 1
jne 0x409d01
mov eax, dword [ebx + 0x10]
xor edx, edx
cmp eax, edi
setne dl
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x1c], edx
call fcn.004090e0
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x409d01
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x30]
mov edx, eax
sar edx, 0x10
mov edx, dword [ecx + edx*4]
mov esi, eax
and esi, 0xffff
shl esi, 5
mov ecx, dword [edx + esi + 0x10]
mov edx, dword [esp + 0x28]
mov dword [ebx + 8], ecx
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x1c], ecx
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
call fcn.0040b2a0
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409148
call fcn.00404f90
mov dword [esp + 0x80], 0xffffffff
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 0x409dbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4