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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf2a9
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 1
mov ecx, esi
call fcn.0047fc87
lea ebx, [esi + 0xda4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], 0x80
mov edi, dword [ebx]
mov eax, dword [edi + 0x14c]
add edi, 0x148
xor esi, esi
cmp eax, esi
je 0x40ae00
push eax
call fcn.00475b2b
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
mov edi, dword [ebx]
mov eax, dword [edi + 0x138]
add edi, 0x134
cmp eax, esi
je 0x40ae24
push eax
call fcn.00475b2b
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
mov edi, dword [ebx]
mov eax, dword [edi + 0x40]
add edi, 0x3c
cmp eax, esi
je 0x40ae42
push eax
call fcn.00475b2b
add esp, 4
mov dword [edi + 4], esi
add ebx, 4
sub dword [esp + 0x14], 1
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jne 0x40ade0
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebx + 0xda0], esi
call fcn.0040bd00
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
xor ecx, ecx
push ecx
lea eax, [esp + 0x28]
push eax
mov edx, eax
xor edi, edi
push edi
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, edx
push ecx
mov dword [esp + 0x1c0], esi
call fcn.0040e220
mov eax, dword [ebx + 0x1008]
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], esi
jle 0x40b529
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov esi, eax
jbe 0x40aec9
call fcn.00495028
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40aec9
call fcn.00495028
push esi
lea eax, [esp + 0x28]
push eax
push edi
push eax
lea edx, [esp + 0x8c]
push edx
push eax
call fcn.0040e220
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40b9b2
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x1008]
jge 0x40b9b2
mov ecx, dword [ecx + 0x1004]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40af2d
cmp eax, dword [edi]
jne 0x40af2d
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40af63
mov ecx, dword [edi + 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 0x40ba3c
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.0047656a
push 0x4cffcc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b4], 2
call fcn.0040dd30
add esp, 0xc
push 0x4cf8e8
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x1b4], 3
call fcn.0040dd30
add esp, 0xc
mov byte [esp + 0x1a8], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40afdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0x5c]
call fcn.0047661e
test eax, eax
je 0x40b138
lea ecx, [esp + 0x54]
call fcn.00476243
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047684d
mov byte [esp + 0x1a8], 6
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
call fcn.0040db40
mov byte [esp + 0x1a8], 8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b04a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0x4cffd0
push ecx
call fcn.00495d6d
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b108
mov edx, dword [esp + 0x10]
push 0x4cffd4
push edx
call fcn.00495d6d
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b108
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x58]
call edx
test eax, eax
je 0x40b108
mov edi, dword [esp + 0x28]
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x40b0e8
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b0e8
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x50]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push edx
mov ecx, 1
mov edi, edx
call fcn.0040ef50
add esp, 0x10
add edi, 4
mov dword [esp + 0x2c], edi
jmp 0x40b108
cmp edi, edx
mov ebx, edx
jbe 0x40b0f3
call fcn.00495028
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040e190
mov byte [esp + 0x1a8], 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b130
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40aff5
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov ebx, eax
jbe 0x40b15c
call fcn.00495028
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b15c
call fcn.00495028
mov ecx, ebx
sub ecx, edi
sar ecx, 2
push ecx
push ebx
push edi
call fcn.0040ee80
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp edi, eax
jbe 0x40b183
call fcn.00495028
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x24]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
nop
cmp dword [esp + 0x28], eax
mov esi, eax
jbe 0x40b19d
call fcn.00495028
test ebx, ebx
je 0x40b1a9
lea edx, [esp + 0x24]
cmp ebx, edx
je 0x40b1ae
call fcn.00495028
cmp edi, esi
je 0x40b4ae
test ebx, ebx
jne 0x40b1bf
call fcn.00495028
cmp edi, dword [ebx + 8]
jb 0x40b1c9
call fcn.00495028
mov edi, dword [edi]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub edi, 0x10
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b1f2
cmp eax, dword [edi]
jne 0x40b1f2
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b228
mov ecx, dword [edi + 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 0x40ba3c
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
lea edi, [ebx + 0x10]
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 8]
xor esi, esi
mov byte [esp + 0x1a8], 9
cmp dword [eax + 0xda0], esi
jle 0x40b28e
xor ebx, ebx
test edi, edi
mov edi, dword [esp + 0x34]
setne bl
mov eax, dword [edi]
add eax, 0x14
test ebx, ebx
je 0x40b9a8
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.00495d6d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b3dc
mov eax, dword [ebp + 8]
add esi, 1
add edi, 4
cmp esi, dword [eax + 0xda0]
jl 0x40b24f
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax + 0xda0]
mov eax, dword [eax + ecx*4 + 0xda4]
mov ebx, dword [eax + 0x14]
add eax, 0x14
add edi, 0xfffffff0
sub ebx, 0x10
cmp edi, ebx
mov dword [esp + 0x20], eax
je 0x40b34e
cmp dword [ebx + 0xc], 0
jl 0x40b33e
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40b33e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b2e4
cmp eax, dword [edi]
jne 0x40b2e4
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b31a
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40ba3c
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b333
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x20]
add esi, 0x10
mov dword [eax], esi
jmp 0x40b34e
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
push ecx
push edx
mov ecx, eax
call fcn.00404cf0
mov edi, dword [esp + 0x18]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b380
cmp eax, dword [edi]
jne 0x40b380
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b3b6
mov ecx, dword [edi + 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 0x40ba3c
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
add ebx, 0x10
mov dword [esi], ebx
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xda0]
mov ecx, dword [esi + edx*4 + 0xda4]
call fcn.0040c7f0
add dword [esi + 0xda0], 1
jmp 0x40b45e
mov edi, dword [esp + 0x18]
push ecx
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x24], esp
mov dword [esp + 0x24], esp
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b410
cmp eax, dword [edi]
jne 0x40b410
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b446
mov ecx, dword [edi + 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 0x40ba3c
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [eax + esi*4 + 0xda4]
call fcn.0040c7f0
mov byte [esp + 0x1a8], 5
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 0x40b486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
cmp edx, dword [ecx + 8]
jb 0x40b498
call fcn.00495028
add dword [esp + 0x48], 4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x40b190
mov byte [esp + 0x1a8], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.0047658e
mov byte [esp + 0x1a8], 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 0x40b50f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
jl 0x40aea5
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0xda0], esi
mov dword [esp + 0x3c], esi
jle 0x40b707
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x4c], 1
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
mov dword [esp + 0x1c], esi
jle 0x40b558
push esi
call fcn.0040c290
mov eax, dword [esi + 0x150]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x13c]
push 0
push 0
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xdc]
push 0xf0
push eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40b62d
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
jle 0x40b62d
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40b9b2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x150]
jge 0x40b9b2
mov eax, edx
mov esi, dword [eax + 0x14c]
add esi, dword [esp + 0x18]
mov ebx, dword [eax + 0x44]
test ebx, ebx
mov ecx, 0x23
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x3c]
jl 0x40b9b2
lea edi, [ebx + 1]
call fcn.0040ec10
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0x8c
mov edi, ebx
imul edi, edi, 0x8c
add edi, dword [esi + 4]
add eax, 1
cmp eax, dword [esp + 0x38]
mov ecx, 0x23
lea esi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
jl 0x40b5a8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x130]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40b6e8
cmp dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
jle 0x40b6e8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40b9b2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x13c]
jge 0x40b9b2
mov esi, dword [eax + 0x138]
add esi, dword [esp + 0x18]
mov ebx, dword [eax + 0x44]
test ebx, ebx
mov ecx, 0x23
lea edi, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x3c]
jl 0x40b9b2
lea edi, [ebx + 1]
call fcn.0040ec10
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0x8c
mov edi, ebx
imul edi, edi, 0x8c
add edi, dword [esi + 4]
add eax, 1
cmp eax, dword [esp + 0x40]
mov ecx, 0x23
lea esi, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
jl 0x40b669
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
add dword [esp + 0x10], 4
add eax, 1
cmp eax, dword [ecx + 0xda0]
mov dword [esp + 0x3c], eax
jl 0x40b541
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
call fcn.0041cda0
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0xda0], edi
jle 0x40b7d2
lea ebx, [ebx]
call fcn.004768e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b9a8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [edi + 1]
push esi
lea ecx, [esp + 0x18]
push str.cam__d
push ecx
mov byte [esp + 0x1b4], 0xa
call fcn.00404f40
add esp, 0xc
test edi, edi
jl 0x40b78f
mov edx, dword [ebx + 0x194]
mov eax, dword [ebx + 0x198]
mov ecx, dword [esp + 0x14]
push edx
push eax
push edi
push ebx
call fcn.0041cc20
push 1
push ebx
mov eax, edi
call fcn.0041cea0
mov byte [esp + 0x1a8], 0
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 0x40b7c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edi, esi
cmp edi, dword [ecx + 0xda0]
jl 0x40b730
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov edx, dword [ebp + 8]
xor edi, edi
cmp dword [edx + 0xda0], edi
mov esi, 0x15180
jle 0x40b822
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov ecx, dword [ebp + 8]
push ebx
push eax
push edi
call fcn.0040c590
test eax, eax
jl 0x40b80f
cmp eax, esi
jge 0x40b80f
mov esi, eax
mov edx, dword [ebp + 8]
add dword [esp + 0x34], 4
add edi, 1
cmp edi, dword [edx + 0xda0]
jl 0x40b7f4
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x674]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 1
push 0x405
push eax
call ebx
mov eax, 0x91a2b3c5
imul esi
mov eax, dword [edi + 0x6e0]
add edx, esi
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xe10
mov edx, esi
sub edx, ecx
push edx
push 1
push 0x405
push eax
call ebx
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, dword [edi + 0x8c]
sub eax, dword [edi + 0x94]
add edi, 0x7f8
sub eax, ecx
sub eax, 0x5e
imul eax, esi
mov ecx, eax
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0xda0]
push eax
call fcn.0041d030
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xda0], 0
mov dword [esp + 0x10], 0
jle 0x40b998
jmp 0x40b8d0
cmp dword [esp + 0x10], 0
jl 0x40b97e
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push edx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40b97e
mov ecx, edi
call fcn.00485f4e
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp eax, 1
jle 0x40b97e
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40b954
mov ecx, edi
call fcn.00485f4e
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call ebx
cmp eax, 1
jle 0x40b954
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
push 0
push 1
push ecx
mov ecx, edi
call fcn.0047c2f7
push 2
push 2
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [edi + 0x20]
push 1
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add eax, 1
cmp eax, dword [ecx + 0xda0]
mov dword [esp + 0x10], eax
jl 0x40b8d0
call fcn.004768e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b9b7
push 0x80004005
call fcn.00404150
call fcn.00478283
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, esi
mov byte [esp + 0x1ac], 0xb
call fcn.0040a9b0
mov byte [esp + 0x1a8], 0xc
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
lea edi, [eax - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x40ba8f
cmp dword [ebx + 0xc], 0
jl 0x40ba81
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40ba81
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40ba28
cmp eax, dword [edi]
jne 0x40ba28
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ba5f
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x40ba41
call fcn.00404d80
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00494561
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40ba78
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0x10
mov dword [esp + 0x10], esi
jmp 0x40ba8f
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404cf0
mov byte [esp + 0x1a8], 0xb
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 0x40bab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push ecx
lea ecx, [esi + 0xce8]
call fcn.00483245
mov eax, dword [esi + 0xda0]
cmp eax, 0x19
mov edi, dword [esi + 0x5fc]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x4b90]
push esi
jle 0x40bb2a
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bb05
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x4b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3644], 0xa
push edx
jmp 0x40bc31
cmp eax, 0x10
jle 0x40bb69
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bb4c
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x4b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x3644], 9
jmp 0x40bc29
cmp eax, 9
jle 0x40bbb0
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bb8b
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x4b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3644], 8
push ecx
jmp 0x40bc31
cmp eax, 4
jle 0x40bbf4
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bbd2
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x4b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3644], 5
push edx
jmp 0x40bc31
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bc11
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x4b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x3644], 2
mov eax, dword [edi + 0x20]
push 1
push 0
push eax
mov dword [edi + 0x3648], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call ebx
mov eax, dword [edi + 0x4b74]
test eax, eax
jbe 0x40bc63
add eax, 0xffffffff
mov dword [edi + 0x4b74], eax
jne 0x40bc63
mov dword [edi + 0x364c], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x1a8], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1a8], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40bce2
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov edi, eax
je 0x40bcd9
nop
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40bcb0
mov esi, dword [esp + 0x28]
push esi
call fcn.00475b2b
add esp, 4
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8