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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x442c34]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
call fcn.004132ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad6a
push 0x80004005
call fcn.00404f80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x78], 0
xor esi, esi
cmp dword [edi + 0x34], esi
je 0x40b6ff
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push esi
push edi
call fcn.00403150
cmp eax, esi
je 0x40b6ff
mov edx, dword [edi + 0x30]
mov ecx, eax
mov ebx, eax
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
and ebx, 0xffff
shl ebx, 5
mov edx, dword [ecx + ebx + 0x10]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov dword [edi + 8], edx
mov dword [edi + 0x10], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x1c], 1
call fcn.004021c0
mov byte [esp + 0x78], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ae43
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40ae35
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ae35
push eax
call fcn.00404fa0
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40ae28
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 + 0x1c], ecx
jmp 0x40ae43
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404ef0
mov byte [esp + 0x78], 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 0x40ae68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x43b1e4
lea ecx, [esp + 0x24]
call fcn.00404530
call fcn.004132ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ad60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x78], 2
call fcn.004132ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ad60
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.0040c9d0
mov byte [esp + 0x78], 4
mov dword [esp + 0x20], 0
jmp 0x40aee0
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
mov eax, edi
call fcn.00402480
mov byte [esp + 0x78], 5
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea esi, [eax - 0x10]
mov dword [esp + 0x28], edx
cmp esi, edx
je 0x40afaa
cmp dword [edx + 0xc], 0
jl 0x40af9c
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x40af9c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40af3e
cmp eax, dword [esi]
jne 0x40af3e
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40af72
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40b6fa
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0041ded4
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 0x40af93
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40afaa
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404ef0
mov byte [esp + 0x78], 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 0x40afcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x40b402
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x40aff7
push 0
lea ecx, [esp + 0x1c]
call fcn.00404e40
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.00404900
mov byte [esp + 0x78], 6
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x10]
lea edi, [ebx - 0x10]
cmp esi, edi
je 0x40b0be
cmp dword [edi + 0xc], 0
jl 0x40b0ac
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40b0ac
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b056
cmp eax, dword [esi]
jne 0x40b056
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b08a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40b6fa
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0041ded4
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b0a3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40b0ba
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ef0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x78], 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 0x40b0e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x43b38c
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b168
mov esi, dword [esp + 0x3c]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b3f6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b14e
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40b14e
push eax
call fcn.00404fa0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40b13b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [ebp + 8]
add ebx, 0x10
inc dword [esp + 0x20]
mov dword [esp + 0x3c], ebx
jmp 0x40aee0
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.00404ef0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.name
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b1e9
mov esi, dword [esp + 0x40]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b3f6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b1cf
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40b1cf
push eax
call fcn.00404fa0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40b1bc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [ebp + 8]
add ebx, 0x10
inc dword [esp + 0x20]
mov dword [esp + 0x40], ebx
jmp 0x40aee0
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x48]
call fcn.00404ef0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.Ads_Url
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b26a
mov esi, dword [esp + 0x44]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b3f6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b250
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40b250
push eax
call fcn.00404fa0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40b23d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [ebp + 8]
add ebx, 0x10
inc dword [esp + 0x20]
mov dword [esp + 0x44], ebx
jmp 0x40aee0
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x4c]
call fcn.00404ef0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.Ads_Exe
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b296
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.Ads_Param
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b2c2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push 0x43b3a4
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b2ee
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.opentime
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b31a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x58]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.gettime
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b346
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x5c]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
push str.jiange
push esi
call fcn.0041e5ef
add esp, 8
test eax, eax
jne 0x40b372
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
lea ecx, [esp + 0x18]
push 0x43b3c4
push ecx
call fcn.00404410
add esp, 8
test al, al
je 0x40b3a2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x64]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
lea eax, [esp + 0x18]
push str.qudaono
push eax
call fcn.00404410
add esp, 8
test al, al
je 0x40b3d2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x68]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
lea edx, [esp + 0x18]
push str.is_quit
push edx
call fcn.00404410
add esp, 8
test al, al
je 0x40b3f6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40aee0
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x40b5ca
push eax
call fcn.0041e4bd
add esp, 4
test eax, eax
jne 0x40b5ca
mov esi, dword [esp + 0x50]
cmp dword [esi - 0xc], eax
jl 0x40b450
push 0x43b1cc
push esi
call fcn.0041fa16
add esp, 8
test eax, eax
je 0x40b450
sub eax, esi
cmp eax, 0xffffffff
je 0x40b450
mov esi, dword [esp + 0x24]
mov dword [esi + 4], 1
jmp 0x40b454
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
cmp dword [edx - 0xc], 0
je 0x40b488
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b47c
push 0
lea ecx, [esp + 0x58]
call fcn.00404e40
mov edx, dword [esp + 0x54]
push edx
call fcn.0041e4bd
add esp, 4
mov dword [esi + 8], eax
mov edx, dword [esp + 0x58]
cmp dword [edx - 0xc], 0
je 0x40b4bc
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b4b0
push 0
lea ecx, [esp + 0x5c]
call fcn.00404e40
mov edx, dword [esp + 0x58]
push edx
call fcn.0041e4bd
add esp, 4
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x5c]
cmp dword [edx - 0xc], 0
je 0x40b4f0
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b4e4
push 0
lea ecx, [esp + 0x60]
call fcn.00404e40
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041e4bd
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x60]
cmp dword [edx - 0xc], 0
je 0x40b524
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b518
push 0
lea ecx, [esp + 0x64]
call fcn.00404e40
mov edx, dword [esp + 0x60]
push edx
call fcn.0041e4bd
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x64]
cmp dword [ecx - 0xc], 0
je 0x40b58e
mov esi, dword [0x446c80]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b58e
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b57f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b57f
push eax
call fcn.00404fa0
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b570
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 [0x446c80], ecx
jmp 0x40b58e
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x446c80
call fcn.00404ef0
mov edx, dword [esp + 0x68]
cmp dword [edx - 0xc], 0
je 0x40b5ca
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b5b6
push 0
lea ecx, [esp + 0x6c]
call fcn.00404e40
mov edx, dword [esp + 0x68]
push edx
call fcn.0041e4bd
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [0x446b4c], eax
mov edx, dword [esp + 0x40]
cmp dword [edx - 0xc], 0
je 0x40b5f3
push 0x446a18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x3c]
call fcn.0040f310
push 0x446a18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x38]
mov edx, edi
call fcn.00412c00
mov byte [esp + 0x78], 7
mov ecx, dword [edi + 0xc]
xor esi, esi
cmp ecx, esi
je 0x40b677
cmp dword [edi + 0x1c], 1
jne 0x40b677
mov eax, dword [edi + 0x10]
mov dword [edi + 8], ecx
xor ecx, ecx
cmp eax, esi
setne cl
push edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x28]
call fcn.0040ad20
mov eax, dword [edi + 8]
cmp eax, esi
je 0x40b677
mov esi, dword [edi + 0x30]
mov ecx, dword [edi + 0xc]
mov edx, eax
sar edx, 0x10
mov edx, dword [esi + edx*4]
mov ebx, eax
and ebx, 0xffff
shl ebx, 5
mov edx, dword [edx + ebx + 0x10]
mov dword [edi + 8], edx
mov dword [edi + 0x10], ecx
xor ecx, ecx
xor edx, edx
cmp eax, ecx
setne dl
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x1c], edx
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b69e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
call fcn.0040cb70
mov byte [esp + 0x78], 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 0x40b6cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 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 0x40ad85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ad85
call fcn.00411c80
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b727
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4