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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5109c9
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x5426a0]
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.00483b2b
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 0x40af70
push eax
call fcn.00479abb
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 0x40af94
push eax
call fcn.00479abb
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 0x40afb2
push eax
call fcn.00479abb
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 0x40af50
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebx + 0xda0], esi
call fcn.0040be70
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.0040e260
mov eax, dword [ebx + 0xfb4]
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], esi
jle 0x40b699
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov esi, eax
jbe 0x40b039
call fcn.00498efc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b039
call fcn.00498efc
push esi
lea eax, [esp + 0x28]
push eax
push edi
push eax
lea edx, [esp + 0x8c]
push edx
push eax
call fcn.0040e260
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40bb22
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0xfb4]
jge 0x40bb22
mov ecx, dword [ecx + 0xfb0]
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 0x40b09d
cmp eax, dword [edi]
jne 0x40b09d
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b0d3
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 0x40bbac
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.0049840a
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.0047a461
push 0x5233e4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b4], 2
call fcn.0040dd70
add esp, 0xc
push 0x522cb8
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x1b4], 3
call fcn.0040dd70
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 0x40b14d
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.0047a515
test eax, eax
je 0x40b2a8
lea ecx, [esp + 0x54]
call fcn.0047a1cd
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047a744
mov byte [esp + 0x1a8], 6
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
call fcn.0040db80
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 0x40b1ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0x5233e8
push ecx
call fcn.00499c41
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b278
mov edx, dword [esp + 0x10]
push 0x5233ec
push edx
call fcn.00499c41
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b278
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x58]
call edx
test eax, eax
je 0x40b278
mov edi, dword [esp + 0x28]
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x40b258
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b258
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.0040ef90
add esp, 0x10
add edi, 4
mov dword [esp + 0x2c], edi
jmp 0x40b278
cmp edi, edx
mov ebx, edx
jbe 0x40b263
call fcn.00498efc
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040e1d0
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 0x40b2a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40b165
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov ebx, eax
jbe 0x40b2cc
call fcn.00498efc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b2cc
call fcn.00498efc
mov ecx, ebx
sub ecx, edi
sar ecx, 2
push ecx
push ebx
push edi
call fcn.0040eec0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp edi, eax
jbe 0x40b2f3
call fcn.00498efc
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 0x40b30d
call fcn.00498efc
test ebx, ebx
je 0x40b319
lea edx, [esp + 0x24]
cmp ebx, edx
je 0x40b31e
call fcn.00498efc
cmp edi, esi
je 0x40b61e
test ebx, ebx
jne 0x40b32f
call fcn.00498efc
cmp edi, dword [ebx + 8]
jb 0x40b339
call fcn.00498efc
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 0x40b362
cmp eax, dword [edi]
jne 0x40b362
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b398
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 0x40bbac
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.0049840a
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 0x40b3fe
xor ebx, ebx
test edi, edi
mov edi, dword [esp + 0x34]
setne bl
mov eax, dword [edi]
add eax, 0x14
test ebx, ebx
je 0x40bb18
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.00499c41
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b54c
mov eax, dword [ebp + 8]
add esi, 1
add edi, 4
cmp esi, dword [eax + 0xda0]
jl 0x40b3bf
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 0x40b4be
cmp dword [ebx + 0xc], 0
jl 0x40b4ae
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40b4ae
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b454
cmp eax, dword [edi]
jne 0x40b454
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b48a
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 0x40bbac
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.0049840a
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b4a3
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 0x40b4be
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
push ecx
push edx
mov ecx, eax
call fcn.00404cd0
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 0x40b4f0
cmp eax, dword [edi]
jne 0x40b4f0
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b526
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 0x40bbac
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.0049840a
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.0040c960
add dword [esi + 0xda0], 1
jmp 0x40b5ce
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 0x40b580
cmp eax, dword [edi]
jne 0x40b580
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b5b6
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 0x40bbac
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.0049840a
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.0040c960
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 0x40b5f6
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 0x40b608
call fcn.00498efc
add dword [esp + 0x48], 4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x40b300
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 0x40b646
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.0047a485
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 0x40b67f
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 0x40b015
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0xda0], esi
mov dword [esp + 0x3c], esi
jle 0x40b877
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 0x40b6c8
push esi
call fcn.0040c400
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 0x40b79d
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
jle 0x40b79d
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40bb22
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x150]
jge 0x40bb22
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 0x40bb22
lea edi, [ebx + 1]
call fcn.0040ec50
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 0x40b718
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 0x40b858
cmp dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
jle 0x40b858
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40bb22
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x13c]
jge 0x40bb22
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 0x40bb22
lea edi, [ebx + 1]
call fcn.0040ec50
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 0x40b7d9
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 0x40b6b1
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
call fcn.0041d000
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0xda0], edi
jle 0x40b942
lea ebx, [ebx]
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bb18
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.00404f20
add esp, 0xc
test edi, edi
jl 0x40b8ff
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.0041ce80
push 1
push ebx
mov eax, edi
call fcn.0041d100
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 0x40b931
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 0x40b8a0
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 0x40b992
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.0040c700
test eax, eax
jl 0x40b97f
cmp eax, esi
jge 0x40b97f
mov esi, eax
mov edx, dword [ebp + 8]
add dword [esp + 0x34], 4
add edi, 1
cmp edi, dword [edx + 0xda0]
jl 0x40b964
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.0041d290
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xda0], 0
mov dword [esp + 0x10], 0
jle 0x40bb08
jmp 0x40ba40
cmp dword [esp + 0x10], 0
jl 0x40baee
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push edx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40baee
mov ecx, edi
call fcn.00489d89
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp eax, 1
jle 0x40baee
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40bac4
mov ecx, edi
call fcn.00489d89
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call ebx
cmp eax, 1
jle 0x40bac4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
push 0
push 1
push ecx
mov ecx, edi
call fcn.00480204
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 0x40ba40
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bb27
push 0x80004005
call fcn.00404150
call fcn.0047c168
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.0040ab20
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 0x40bbff
cmp dword [ebx + 0xc], 0
jl 0x40bbf1
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40bbf1
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40bb98
cmp eax, dword [edi]
jne 0x40bb98
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40bbcf
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 0x40bbb1
call fcn.00404d60
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.0049840a
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40bbe8
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 0x40bbff
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404cd0
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 0x40bc27
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.004870e9
mov eax, dword [esi + 0xda0]
cmp eax, 0x19
mov edi, dword [esi + 0x5fc]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x48e4]
push esi
jle 0x40bc9a
call ebx
cmp dword [edi + 0x48c8], 0
jne 0x40bc75
push 0x64
mov dword [edi + 0x33a0], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x48c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3398], 0xa
push edx
jmp 0x40bda1
cmp eax, 0x10
jle 0x40bcd9
call ebx
cmp dword [edi + 0x48c8], 0
jne 0x40bcbc
push 0x64
mov dword [edi + 0x33a0], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x48c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x3398], 9
jmp 0x40bd99
cmp eax, 9
jle 0x40bd20
call ebx
cmp dword [edi + 0x48c8], 0
jne 0x40bcfb
push 0x64
mov dword [edi + 0x33a0], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x48c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3398], 8
push ecx
jmp 0x40bda1
cmp eax, 4
jle 0x40bd64
call ebx
cmp dword [edi + 0x48c8], 0
jne 0x40bd42
push 0x64
mov dword [edi + 0x33a0], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x48c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x20]
push 1
push 0
mov dword [edi + 0x3398], 5
push edx
jmp 0x40bda1
call ebx
cmp dword [edi + 0x48c8], 0
jne 0x40bd81
push 0x64
mov dword [edi + 0x33a0], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x48c8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x3398], 2
mov eax, dword [edi + 0x20]
push 1
push 0
push eax
mov dword [edi + 0x339c], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call ebx
mov eax, dword [edi + 0x48c8]
test eax, eax
jbe 0x40bdd3
add eax, 0xffffffff
mov dword [edi + 0x48c8], eax
jne 0x40bdd3
mov dword [edi + 0x33a0], 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 0x40be02
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 0x40be52
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov edi, eax
je 0x40be49
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 0x40be3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40be20
mov esi, dword [esp + 0x28]
push esi
call fcn.00479abb
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