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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433860
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x43fc34]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
call fcn.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b7aa
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 + 0x1c], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x78], 0
xor esi, esi
cmp dword [edi + 0x34], esi
je 0x40c13f
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push esi
push edi
call fcn.004030f0
cmp eax, esi
je 0x40c13f
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.00402160
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 0x40b883
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b875
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b875
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 0x40b868
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 0x40b883
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404ee0
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 0x40b8a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x439070
lea ecx, [esp + 0x24]
call fcn.004044f0
call fcn.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b7a0
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.00412b81
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b7a0
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.0040c8a0
mov byte [esp + 0x78], 4
mov dword [esp + 0x20], 0
jmp 0x40b920
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
mov eax, edi
call fcn.00402420
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 0x40b9ea
cmp dword [edx + 0xc], 0
jl 0x40b9dc
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x40b9dc
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b97e
cmp eax, dword [esi]
jne 0x40b97e
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b9b2
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 0x40c13a
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.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 0x40b9d3
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 0x40b9ea
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404ee0
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 0x40ba0f
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 0x40be42
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x40ba37
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 + 0x78], 6
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x10]
lea edi, [ebx - 0x10]
cmp esi, edi
je 0x40bafe
cmp dword [edi + 0xc], 0
jl 0x40baec
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40baec
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40ba96
cmp eax, dword [esi]
jne 0x40ba96
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40baca
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 0x40c13a
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.0041d7a4
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40bae3
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 0x40bafa
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ee0
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 0x40bb23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x4392b4
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bba8
mov esi, dword [esp + 0x3c]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40be36
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bb8e
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40bb8e
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 0x40bb7b
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 0x40b920
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.00404ee0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.name
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bc29
mov esi, dword [esp + 0x40]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40be36
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bc0f
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40bc0f
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 0x40bbfc
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 0x40b920
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x48]
call fcn.00404ee0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.Ads_Url
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bcaa
mov esi, dword [esp + 0x44]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40be36
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bc90
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40bc90
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 0x40bc7d
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 0x40b920
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x4c]
call fcn.00404ee0
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.Ads_Exe
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bcd6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.Ads_Param
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bd02
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push 0x4392cc
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bd2e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.opentime
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bd5a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x58]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.gettime
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bd86
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x5c]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
push str.jiange
push esi
call fcn.0041debf
add esp, 8
test eax, eax
jne 0x40bdb2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
lea ecx, [esp + 0x18]
push 0x4392ec
push ecx
call fcn.004043d0
add esp, 8
test al, al
je 0x40bde2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x64]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
lea eax, [esp + 0x18]
push str.qudaono
push eax
call fcn.004043d0
add esp, 8
test al, al
je 0x40be12
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x68]
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
lea edx, [esp + 0x18]
push str.is_quit
push edx
call fcn.004043d0
add esp, 8
test al, al
je 0x40be36
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push eax
call fcn.00405030
inc dword [esp + 0x20]
mov edi, dword [ebp + 8]
jmp 0x40b920
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x40c00a
push eax
call fcn.0041dd8d
add esp, 4
test eax, eax
jne 0x40c00a
mov esi, dword [esp + 0x50]
cmp dword [esi - 0xc], eax
jl 0x40be90
push 0x43905c
push esi
call fcn.0041f2e6
add esp, 8
test eax, eax
je 0x40be90
sub eax, esi
cmp eax, 0xffffffff
je 0x40be90
mov esi, dword [esp + 0x24]
mov dword [esi + 4], 1
jmp 0x40be94
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
cmp dword [edx - 0xc], 0
je 0x40bec8
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40bebc
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 + 8], eax
mov edx, dword [esp + 0x58]
cmp dword [edx - 0xc], 0
je 0x40befc
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40bef0
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 + 0xc], eax
mov edx, dword [esp + 0x5c]
cmp dword [edx - 0xc], 0
je 0x40bf30
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40bf24
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 + 0x10], eax
mov edx, dword [esp + 0x60]
cmp dword [edx - 0xc], 0
je 0x40bf64
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40bf58
push 0
lea ecx, [esp + 0x64]
call fcn.00404e30
mov edx, dword [esp + 0x60]
push edx
call fcn.0041dd8d
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x64]
cmp dword [ecx - 0xc], 0
je 0x40bfce
mov esi, dword [0x443bf4]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40bfce
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40bfbf
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bfbf
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 0x40bfb0
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 [0x443bf4], ecx
jmp 0x40bfce
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x443bf4
call fcn.00404ee0
mov edx, dword [esp + 0x68]
cmp dword [edx - 0xc], 0
je 0x40c00a
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40bff6
push 0
lea ecx, [esp + 0x6c]
call fcn.00404e30
mov edx, dword [esp + 0x68]
push edx
call fcn.0041dd8d
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [0x443b6c], eax
mov edx, dword [esp + 0x40]
cmp dword [edx - 0xc], 0
je 0x40c033
push 0x443958
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x3c]
call fcn.0040ede0
push 0x443958
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x38]
mov edx, edi
call fcn.00412480
mov byte [esp + 0x78], 7
mov ecx, dword [edi + 0xc]
xor esi, esi
cmp ecx, esi
je 0x40c0b7
cmp dword [edi + 0x1c], 1
jne 0x40c0b7
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.0040b760
mov eax, dword [edi + 8]
cmp eax, esi
je 0x40c0b7
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 0x40c0de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
call fcn.0040ca40
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 0x40c10c
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 0x40b7c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b7c5
call fcn.00404f90
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 0x40c167
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