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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ede9
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x5416a0]
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.00482040
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 0x40ae30
push eax
call fcn.00477ec6
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 0x40ae54
push eax
call fcn.00477ec6
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 0x40ae72
push eax
call fcn.00477ec6
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 0x40ae10
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebx + 0xda0], esi
call fcn.0040bd30
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.0040e250
mov eax, dword [ebx + 0x1008]
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], esi
jle 0x40b559
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov esi, eax
jbe 0x40aef9
call fcn.004973c8
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40aef9
call fcn.004973c8
push esi
lea eax, [esp + 0x28]
push eax
push edi
push eax
lea edx, [esp + 0x8c]
push edx
push eax
call fcn.0040e250
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40b9e2
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x1008]
jge 0x40b9e2
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 0x40af5d
cmp eax, dword [edi]
jne 0x40af5d
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40af93
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 0x40ba6c
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.00496901
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.00478907
push 0x52239c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b4], 2
call fcn.0040dd60
add esp, 0xc
push 0x521cb8
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x1b4], 3
call fcn.0040dd60
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 0x40b00d
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.004789bb
test eax, eax
je 0x40b168
lea ecx, [esp + 0x54]
call fcn.004785e0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.00478bea
mov byte [esp + 0x1a8], 6
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
call fcn.0040db70
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 0x40b07a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0x5223a0
push ecx
call fcn.0049810d
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b138
mov edx, dword [esp + 0x10]
push 0x5223a4
push edx
call fcn.0049810d
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b138
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x58]
call edx
test eax, eax
je 0x40b138
mov edi, dword [esp + 0x28]
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x40b118
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b118
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.0040efe0
add esp, 0x10
add edi, 4
mov dword [esp + 0x2c], edi
jmp 0x40b138
cmp edi, edx
mov ebx, edx
jbe 0x40b123
call fcn.004973c8
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040e1c0
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 0x40b160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40b025
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov ebx, eax
jbe 0x40b18c
call fcn.004973c8
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b18c
call fcn.004973c8
mov ecx, ebx
sub ecx, edi
sar ecx, 2
push ecx
push ebx
push edi
call fcn.0040ef10
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp edi, eax
jbe 0x40b1b3
call fcn.004973c8
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 0x40b1cd
call fcn.004973c8
test ebx, ebx
je 0x40b1d9
lea edx, [esp + 0x24]
cmp ebx, edx
je 0x40b1de
call fcn.004973c8
cmp edi, esi
je 0x40b4de
test ebx, ebx
jne 0x40b1ef
call fcn.004973c8
cmp edi, dword [ebx + 8]
jb 0x40b1f9
call fcn.004973c8
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 0x40b222
cmp eax, dword [edi]
jne 0x40b222
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b258
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 0x40ba6c
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.00496901
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 0x40b2be
xor ebx, ebx
test edi, edi
mov edi, dword [esp + 0x34]
setne bl
mov eax, dword [edi]
add eax, 0x14
test ebx, ebx
je 0x40b9d8
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.0049810d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b40c
mov eax, dword [ebp + 8]
add esi, 1
add edi, 4
cmp esi, dword [eax + 0xda0]
jl 0x40b27f
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 0x40b37e
cmp dword [ebx + 0xc], 0
jl 0x40b36e
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40b36e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b314
cmp eax, dword [edi]
jne 0x40b314
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b34a
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 0x40ba6c
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.00496901
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b363
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 0x40b37e
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
push ecx
push edx
mov ecx, eax
call fcn.00404d00
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 0x40b3b0
cmp eax, dword [edi]
jne 0x40b3b0
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b3e6
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 0x40ba6c
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.00496901
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.0040c820
add dword [esi + 0xda0], 1
jmp 0x40b48e
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 0x40b440
cmp eax, dword [edi]
jne 0x40b440
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b476
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 0x40ba6c
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.00496901
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.0040c820
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 0x40b4b6
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 0x40b4c8
call fcn.004973c8
add dword [esp + 0x48], 4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x40b1c0
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 0x40b506
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.0047892b
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 0x40b53f
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 0x40aed5
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0xda0], esi
mov dword [esp + 0x3c], esi
jle 0x40b737
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 0x40b588
push esi
call fcn.0040c2c0
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 0x40b65d
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
jle 0x40b65d
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40b9e2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x150]
jge 0x40b9e2
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 0x40b9e2
lea edi, [ebx + 1]
call fcn.0040eca0
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 0x40b5d8
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 0x40b718
cmp dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
jle 0x40b718
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40b9e2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x13c]
jge 0x40b9e2
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 0x40b9e2
lea edi, [ebx + 1]
call fcn.0040eca0
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 0x40b699
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 0x40b571
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
call fcn.0041d020
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0xda0], edi
jle 0x40b802
lea ebx, [ebx]
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b9d8
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.00404f50
add esp, 0xc
test edi, edi
jl 0x40b7bf
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.0041cea0
push 1
push ebx
mov eax, edi
call fcn.0041d120
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 0x40b7f1
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 0x40b760
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 0x40b852
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.0040c5c0
test eax, eax
jl 0x40b83f
cmp eax, esi
jge 0x40b83f
mov esi, eax
mov edx, dword [ebp + 8]
add dword [esp + 0x34], 4
add edi, 1
cmp edi, dword [edx + 0xda0]
jl 0x40b824
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.0041d2b0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xda0], 0
mov dword [esp + 0x10], 0
jle 0x40b9c8
jmp 0x40b900
cmp dword [esp + 0x10], 0
jl 0x40b9ae
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push edx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40b9ae
mov ecx, edi
call fcn.004882be
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp eax, 1
jle 0x40b9ae
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40b984
mov ecx, edi
call fcn.004882be
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call ebx
cmp eax, 1
jle 0x40b984
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
push 0
push 1
push ecx
mov ecx, edi
call fcn.0047e6ac
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 0x40b900
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b9e7
push 0x80004005
call fcn.00404150
call fcn.0047a63a
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.0040a9e0
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 0x40babf
cmp dword [ebx + 0xc], 0
jl 0x40bab1
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40bab1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40ba58
cmp eax, dword [edi]
jne 0x40ba58
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ba8f
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 0x40ba71
call fcn.00404d90
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.00496901
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40baa8
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 0x40babf
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404d00
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 0x40bae7
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.004855f9
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 0x40bb5a
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bb35
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 0x40bc61
cmp eax, 0x10
jle 0x40bb99
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bb7c
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 0x40bc59
cmp eax, 9
jle 0x40bbe0
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bbbb
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 0x40bc61
cmp eax, 4
jle 0x40bc24
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bc02
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 0x40bc61
call ebx
cmp dword [edi + 0x4b74], 0
jne 0x40bc41
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 0x40bc93
add eax, 0xffffffff
mov dword [edi + 0x4b74], eax
jne 0x40bc93
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 0x40bcc2
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 0x40bd12
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov edi, eax
je 0x40bd09
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 0x40bcfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40bce0
mov esi, dword [esp + 0x28]
push esi
call fcn.00477ec6
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