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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f4a9
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
mov eax, dword [0x5b16b0]
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.0048561b
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 0x40b0c0
push eax
call fcn.0047b546
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 0x40b0e4
push eax
call fcn.0047b546
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 0x40b102
push eax
call fcn.0047b546
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 0x40b0a0
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebx + 0xda0], esi
call fcn.0040bfc0
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.0040e4e0
mov eax, dword [ebx + 0x1008]
cmp eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], esi
jle 0x40b7e9
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov esi, eax
jbe 0x40b189
call fcn.0049a9dc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b189
call fcn.0049a9dc
push esi
lea eax, [esp + 0x28]
push eax
push edi
push eax
lea edx, [esp + 0x8c]
push edx
push eax
call fcn.0040e4e0
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40bc72
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x1008]
jge 0x40bc72
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 0x40b1ed
cmp eax, dword [edi]
jne 0x40b1ed
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b223
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 0x40bcfc
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.00499eee
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.0047bef4
push 0x592740
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b4], 2
call fcn.0040dff0
add esp, 0xc
push 0x592028
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x1b4], 3
call fcn.0040dff0
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 0x40b29d
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.0047bfa8
test eax, eax
je 0x40b3f8
lea ecx, [esp + 0x54]
call fcn.0047bc60
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047c1d7
mov byte [esp + 0x1a8], 6
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
call fcn.0040de00
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 0x40b30a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0x592744
push ecx
call fcn.0049b721
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b3c8
mov edx, dword [esp + 0x10]
push 0x592748
push edx
call fcn.0049b721
add esp, 8
test eax, eax
setne al
test al, al
je 0x40b3c8
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x58]
call edx
test eax, eax
je 0x40b3c8
mov edi, dword [esp + 0x28]
test edi, edi
mov edx, dword [esp + 0x2c]
je 0x40b3a8
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b3a8
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.0040f270
add esp, 0x10
add edi, 4
mov dword [esp + 0x2c], edi
jmp 0x40b3c8
cmp edi, edx
mov ebx, edx
jbe 0x40b3b3
call fcn.0049a9dc
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040e450
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 0x40b3f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40b2b5
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov ebx, eax
jbe 0x40b41c
call fcn.0049a9dc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp edi, eax
jbe 0x40b41c
call fcn.0049a9dc
mov ecx, ebx
sub ecx, edi
sar ecx, 2
push ecx
push ebx
push edi
call fcn.0040f1a0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp edi, eax
jbe 0x40b443
call fcn.0049a9dc
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 0x40b45d
call fcn.0049a9dc
test ebx, ebx
je 0x40b469
lea edx, [esp + 0x24]
cmp ebx, edx
je 0x40b46e
call fcn.0049a9dc
cmp edi, esi
je 0x40b76e
test ebx, ebx
jne 0x40b47f
call fcn.0049a9dc
cmp edi, dword [ebx + 8]
jb 0x40b489
call fcn.0049a9dc
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 0x40b4b2
cmp eax, dword [edi]
jne 0x40b4b2
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b4e8
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 0x40bcfc
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.00499eee
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 0x40b54e
xor ebx, ebx
test edi, edi
mov edi, dword [esp + 0x34]
setne bl
mov eax, dword [edi]
add eax, 0x14
test ebx, ebx
je 0x40bc68
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.0049b721
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b69c
mov eax, dword [ebp + 8]
add esi, 1
add edi, 4
cmp esi, dword [eax + 0xda0]
jl 0x40b50f
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 0x40b60e
cmp dword [ebx + 0xc], 0
jl 0x40b5fe
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40b5fe
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40b5a4
cmp eax, dword [edi]
jne 0x40b5a4
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b5da
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 0x40bcfc
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.00499eee
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b5f3
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 0x40b60e
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 0x40b640
cmp eax, dword [edi]
jne 0x40b640
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b676
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 0x40bcfc
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.00499eee
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.0040cab0
add dword [esi + 0xda0], 1
jmp 0x40b71e
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 0x40b6d0
cmp eax, dword [edi]
jne 0x40b6d0
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b706
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 0x40bcfc
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.00499eee
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.0040cab0
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 0x40b746
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 0x40b758
call fcn.0049a9dc
add dword [esp + 0x48], 4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x40b450
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 0x40b796
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.0047bf18
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 0x40b7cf
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 0x40b165
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0xda0], esi
mov dword [esp + 0x3c], esi
jle 0x40b9c7
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 0x40b818
push esi
call fcn.0040c550
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 0x40b8ed
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
jle 0x40b8ed
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40bc72
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x150]
jge 0x40bc72
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 0x40bc72
lea edi, [ebx + 1]
call fcn.0040ef30
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 0x40b868
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 0x40b9a8
cmp dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
jle 0x40b9a8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 0
jl 0x40bc72
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x13c]
jge 0x40bc72
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 0x40bc72
lea edi, [ebx + 1]
call fcn.0040ef30
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 0x40b929
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 0x40b801
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
call fcn.0041d210
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0xda0], edi
jle 0x40ba92
lea ebx, [ebx]
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bc68
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 0x40ba4f
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.0041d090
push 1
push ebx
mov eax, edi
call fcn.0041d310
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 0x40ba81
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 0x40b9f0
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 0x40bae2
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.0040c850
test eax, eax
jl 0x40bacf
cmp eax, esi
jge 0x40bacf
mov esi, eax
mov edx, dword [ebp + 8]
add dword [esp + 0x34], 4
add edi, 1
cmp edi, dword [edx + 0xda0]
jl 0x40bab4
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.0041d4a0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xda0], 0
mov dword [esp + 0x10], 0
jle 0x40bc58
jmp 0x40bb90
cmp dword [esp + 0x10], 0
jl 0x40bc3e
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push edx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40bc3e
mov ecx, edi
call fcn.0048b899
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp eax, 1
jle 0x40bc3e
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebx
cmp dword [esp + 0x10], eax
jge 0x40bc14
mov ecx, edi
call fcn.0048b899
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call ebx
cmp eax, 1
jle 0x40bc14
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
push 0
push 1
push ecx
mov ecx, edi
call fcn.00481c83
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 0x40bb90
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bc77
push 0x80004005
call fcn.00404150
call fcn.0047dc2b
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.0040ac70
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 0x40bd4f
cmp dword [ebx + 0xc], 0
jl 0x40bd41
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40bd41
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40bce8
cmp eax, dword [edi]
jne 0x40bce8
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40bd1f
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 0x40bd01
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.00499eee
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40bd38
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 0x40bd4f
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 0x40bd77
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.00488bd4
mov eax, dword [esi + 0xda0]
cmp eax, 0x19
mov edi, dword [esi + 0x5fc]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x9b90]
push esi
jle 0x40bdea
call ebx
cmp dword [edi + 0x9b74], 0
jne 0x40bdc5
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x9b74], 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 0x40bef1
cmp eax, 0x10
jle 0x40be29
call ebx
cmp dword [edi + 0x9b74], 0
jne 0x40be0c
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x9b74], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x3644], 9
jmp 0x40bee9
cmp eax, 9
jle 0x40be70
call ebx
cmp dword [edi + 0x9b74], 0
jne 0x40be4b
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x9b74], 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 0x40bef1
cmp eax, 4
jle 0x40beb4
call ebx
cmp dword [edi + 0x9b74], 0
jne 0x40be92
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x9b74], 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 0x40bef1
call ebx
cmp dword [edi + 0x9b74], 0
jne 0x40bed1
push 0x64
mov dword [edi + 0x364c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [edi + 0x9b74], 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 + 0x9b74]
test eax, eax
jbe 0x40bf23
add eax, 0xffffffff
mov dword [edi + 0x9b74], eax
jne 0x40bf23
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 0x40bf52
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 0x40bfa2
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov edi, eax
je 0x40bf99
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 0x40bf8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40bf70
mov esi, dword [esp + 0x28]
push esi
call fcn.0047b546
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