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

Disassembly:
push 0xffffffffffffffff
push 0x482e21
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4b70]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xbc]
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd8]
mov esi, dword [esp + 0xc0]
mov ebx, dword [ebp + 0xd4]
sub esp, 0x18
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xf4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xf8]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xfc]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
call fcn.0042a400
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x240]
lea ebx, [ebp + 0x240]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xdc]
sub eax, 0x10
mov esi, edi
mov edi, dword [esp + 0xe0]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
call fcn.00402be0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, ebx
mov dword [esp + 0xb4], 0
call fcn.004027b0
lea ecx, [ebp + 0x244]
call fcn.004027b0
lea ecx, [ebp + 0x248]
call fcn.004027b0
cmp dword [ebp + 0x15c], 0
je 0x411c17
mov ebx, dword [esp + 0xc4]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
jmp 0x411c2f
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ebx, dword [esp + 0xc4]
cmp dword [ebp + 0x15c], 0
mov dword [esp + 0x30], eax
mov ecx, ebx
je 0x411c42
push 2
jmp 0x411c44
push 1
call fcn.0043cce0
mov ecx, dword [ebp + 0x17c]
push ecx
push 2
push 0
lea ecx, [esp + 0x64]
call fcn.0043daca
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
mov byte [esp + 0xb8], 1
call fcn.0043da25
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc0]
mov eax, dword [eax]
cmp esi, eax
jg 0x4129c2
jne 0x411c98
mov ecx, dword [esp + 0xc0]
cmp edi, dword [ecx + 0x10]
jge 0x4129c2
test esi, esi
mov ecx, dword [ebp + 0xd4]
jl 0x4129c2
mov eax, dword [ecx + 0xc]
cmp esi, eax
jge 0x4129c2
lea edx, [esi + 1]
cmp edx, eax
jne 0x411cd1
cmp esi, eax
jge 0x4129a9
mov eax, esi
imul eax, eax, 0x2c
add eax, dword [ecx + 8]
cmp edi, dword [eax + 0x24]
jge 0x4129c2
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x60]
push ecx
lea edi, [esp + 0xac]
mov dword [eax + 0x14], edx
call fcn.0042ab40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
mov ebx, dword [ebp + 0xd4]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
call fcn.0042a8f0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4129c2
mov edi, eax
cmp dword [edi], 2
je 0x4129ae
cmp dword [edi + 0x24], 0
mov dword [esp + 0x20], 0
jle 0x411dc8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], edx
mov esi, ebp
mov dword [eax + 0x14], ecx
call fcn.00417fb0
mov dword [esp + 0x20], 1
jmp 0x411e05
cmp dword [edi + 0x28], 0
jle 0x411e01
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov esi, ebp
mov dword [eax + 0x14], edx
call fcn.00417fb0
jmp 0x411e05
mov eax, dword [esp + 0x30]
mov ebx, dword [edi + 8]
lea esi, [esp + 0x7c]
mov dword [esp + 0x28], eax
call fcn.00426b90
mov byte [esp + 0xb4], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x411e78
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x411e6a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x411e6a
push eax
call fcn.00402be0
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x411e5d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
jmp 0x411e78
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e60
mov byte [esp + 0xb4], 1
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4a6268]
mov esi, dword [ebp + 0x1d4]
mov ebx, dword [edi + 8]
xor eax, eax
test ecx, ecx
jle 0x411ede
mov edi, dword [0x4a6264]
mov edx, edi
lea ecx, [ecx]
test eax, eax
jl 0x4129a9
cmp eax, ecx
jge 0x4129a9
cmp ebx, dword [edx]
je 0x411f10
add eax, 1
add edx, 0x40
cmp eax, ecx
jl 0x411ec0
mov dword [esp + 0x2c], esi
cmp dword [ebp + 0x15c], 0
mov eax, dword [esp + 0x28]
je 0x4120fe
cmp eax, dword [ebp + 0x170]
mov ebx, dword [esp + 0xc4]
jne 0x411f33
mov edx, dword [ebx]
mov eax, dword [ebp + 0x164]
mov edx, dword [edx + 0x2c]
push eax
jmp 0x411f4f
shl eax, 6
mov ecx, dword [eax + edi + 0x3c]
add eax, edi
imul ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
jmp 0x411ee2
cmp eax, dword [ebp + 0x174]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
jne 0x411f48
mov ecx, dword [ebp + 0x168]
jmp 0x411f4e
mov ecx, dword [ebp + 0x16c]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x240]
xor eax, eax
xor edi, edi
cmp ecx, edi
setne al
cmp eax, edi
je 0x4129fe
mov eax, dword [esp + 0x18]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f96
cmp dx, di
je 0x411f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f96
add eax, 4
add ecx, 4
cmp dx, di
jne 0x411f70
xor eax, eax
jmp 0x411f9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
setne al
test al, al
je 0x4120e3
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x240]
call fcn.00402de0
mov ecx, dword [ebp + 0x244]
cmp dword [ecx - 0xc], edi
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x412010
cmp dword [eax + 0xc], edi
lea edx, [eax + 0xc]
jge 0x411fe8
cmp dword [ecx - 8], edi
jl 0x412a08
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp + 0x244]
mov word [ecx], di
jmp 0x412010
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebp + 0x244], eax
mov ecx, dword [ebp + 0x248]
cmp dword [ecx - 0xc], edi
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x412068
cmp dword [eax + 0xc], edi
lea edx, [eax + 0xc]
jge 0x412040
cmp dword [ecx - 8], edi
jl 0x412a08
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp + 0x248]
mov word [ecx], di
jmp 0x412068
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebp + 0x248], eax
mov edx, dword [ebx]
mov eax, dword [ebp + 0x230]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x22c]
call fcn.0043d97f
mov ecx, dword [ebp + 0x22c]
cmp ecx, edi
je 0x412096
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.004307fb
add esp, 4
cmp eax, edi
je 0x4120b1
mov dword [eax + 4], edi
mov dword [eax], vtable.CFont.0
mov esi, eax
jmp 0x4120b3
xor esi, esi
mov eax, dword [esp + 0x18]
push eax
push edi
mov ecx, dword [esp + 0x34]
push edi
push 0x10
push edi
push 1
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push ecx
mov dword [ebp + 0x22c], esi
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
mov ecx, esi
call fcn.0043d92c
mov edx, dword [ebx]
mov eax, dword [ebp + 0x22c]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov dword [ebp + 0x230], eax
jmp 0x412657
cmp eax, dword [ebp + 0x170]
jne 0x41220b
cmp dword [ebp + 0x1b8], 0
je 0x41220b
cmp dword [esp + 0x20], 0
jne 0x41220b
lea eax, [esp + 0x18]
push eax
lea esi, [ebp + 0x244]
mov eax, esi
call fcn.0040caf0
add esp, 4
test al, al
je 0x412466
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00402de0
lea ecx, [ebp + 0x248]
call fcn.004027b0
lea ecx, [ebp + 0x240]
call fcn.004027b0
mov ebx, dword [esp + 0xc4]
mov edx, dword [ebx]
mov eax, dword [ebp + 0x230]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x234]
call fcn.0043d97f
mov ecx, dword [ebp + 0x234]
test ecx, ecx
je 0x412196
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.004307fb
add esp, 4
test eax, eax
je 0x4121b5
mov dword [eax + 4], 0
mov dword [eax], vtable.CFont.0
mov esi, eax
jmp 0x4121b7
xor esi, esi
mov eax, dword [esp + 0x18]
push eax
push 0
mov ecx, dword [esp + 0x34]
push 0
push 0x10
push 0
push 1
push 0
push 1
push 0
push 0x190
push 0
push 0
push 0
push ecx
mov dword [ebp + 0x234], esi
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
mov ecx, esi
call fcn.0043d92c
mov edx, dword [ebx]
mov eax, dword [ebp + 0x234]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov dword [ebp + 0x230], eax
jmp 0x41246d
cmp eax, dword [ebp + 0x174]
jne 0x412348
cmp dword [esp + 0x20], 0
je 0x412348
mov ecx, dword [ebp + 0x248]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4129fe
mov eax, dword [esp + 0x18]
jmp 0x412240
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412266
test dx, dx
je 0x412262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412266
add eax, 4
add ecx, 4
test dx, dx
jne 0x412240
xor eax, eax
jmp 0x41226b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x412466
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x248]
call fcn.00402de0
lea ecx, [ebp + 0x244]
call fcn.004027b0
lea ecx, [ebp + 0x240]
call fcn.004027b0
mov ebx, dword [esp + 0xc4]
mov edx, dword [ebx]
mov eax, dword [ebp + 0x230]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x238]
call fcn.0043d97f
mov ecx, dword [ebp + 0x238]
test ecx, ecx
je 0x4122d3
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.004307fb
add esp, 4
test eax, eax
je 0x4122f2
mov dword [eax + 4], 0
mov dword [eax], vtable.CFont.0
mov esi, eax
jmp 0x4122f4
xor esi, esi
mov eax, dword [esp + 0x18]
push eax
push 0
mov ecx, dword [esp + 0x34]
push 0
push 0x10
push 0
push 1
push 1
push 0
push 0
push 0x190
push 0
push 0
push 0
push ecx
mov dword [ebp + 0x238], esi
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
mov ecx, esi
call fcn.0043d92c
mov edx, dword [ebx]
mov eax, dword [ebp + 0x238]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov dword [ebp + 0x230], eax
jmp 0x41246d
mov ecx, dword [ebp + 0x240]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4129fe
mov eax, dword [esp + 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412387
test dx, dx
je 0x412383
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412387
add eax, 4
add ecx, 4
test dx, dx
jne 0x412361
xor eax, eax
jmp 0x41238c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x412466
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x240]
call fcn.00402de0
lea ecx, [ebp + 0x248]
call fcn.004027b0
lea ecx, [ebp + 0x244]
call fcn.004027b0
mov ebx, dword [esp + 0xc4]
mov edx, dword [ebx]
mov eax, dword [ebp + 0x230]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x22c]
call fcn.0043d97f
mov ecx, dword [ebp + 0x22c]
test ecx, ecx
je 0x4123f4
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.004307fb
add esp, 4
test eax, eax
je 0x412413
mov dword [eax + 4], 0
mov dword [eax], vtable.CFont.0
mov esi, eax
jmp 0x412415
xor esi, esi
mov eax, dword [esp + 0x18]
push eax
push 0
mov ecx, dword [esp + 0x34]
push 0
push 0x10
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push ecx
mov dword [ebp + 0x22c], esi
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
mov ecx, esi
call fcn.0043d92c
mov edx, dword [ebx]
mov eax, dword [ebp + 0x22c]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov dword [ebp + 0x230], eax
jmp 0x41246d
mov ebx, dword [esp + 0xc4]
cmp dword [ebp + 0x150], 0
jne 0x412600
mov eax, dword [ebp + 0x268]
cmp eax, 4
je 0x412600
cmp eax, 5
je 0x412600
mov eax, dword [ebp + 0x260]
mov ecx, dword [ebp + 0x25c]
lea esi, [eax + 1]
cmp ecx, esi
jne 0x4124a7
mov ecx, eax
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x24]
test edx, edx
jg 0x4124cc
cmp dword [edi + 0x28], 0
jg 0x4124c8
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push 0
mov ecx, ebx
call edx
jmp 0x41265b
test edx, edx
jle 0x4124db
mov eax, edx
sub ecx, eax
jns 0x4124e9
cmp edx, esi
je 0x4124e6
mov eax, dword [edi + 0x28]
jmp 0x4124e9
mov eax, dword [edi + 0x28]
sub ecx, eax
jns 0x4124e9
cmp eax, esi
jne 0x4124e9
sub eax, 1
add eax, 0xffffffff
cmp eax, 0xb
ja case.default.0x4124f5
jmp dword [eax*4 + 0x412aa0]
mov eax, dword [ebp + 0x184]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x188]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x18c]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x190]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x194]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x198]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x19c]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x1a0]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x1a4]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x1a8]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x1ac]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov eax, dword [ebp + 0x1b0]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
mov edx, dword [ebx]
xor eax, eax
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x41265b
cmp dword [ebp + 0x15c], 0
jne 0x412657
mov eax, dword [ebp + 0x170]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jne 0x41262a
cmp dword [esp + 0x20], 0
jne 0x41262a
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x412657
mov eax, dword [ebp + 0x174]
cmp ecx, eax
jne 0x412647
cmp dword [esp + 0x20], 0
je 0x412647
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
jmp 0x412657
mov edx, dword [ebx]
mov eax, dword [ebp + 0x178]
mov edx, dword [edx + 0x30]
push eax
mov ecx, ebx
call edx
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x154]
test eax, eax
jne 0x4127e6
cmp word [edi + 0x10], ax
jbe 0x4127ba
call fcn.00440a5b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4129fe
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xb4], 3
movzx edx, word [ecx + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov dword [esp + 0x50], edi
add edi, 1
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
mov dword [esp + 0x28], edx
jge 0x4126d4
push edi
lea ecx, [esp + 0x24]
call fcn.00402ab0
mov esi, dword [esp + 0x20]
test edi, edi
mov ax, word [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov word [esi + ecx*2], ax
jl 0x412a08
cmp edi, dword [esi - 8]
jg 0x412a08
mov eax, dword [esp + 0xcc]
push 0
push 1
push esi
push 0
mov dword [esi - 0xc], edi
push 0x10
mov word [esi + edi*2], 0
mov edx, dword [ebx]
mov edi, dword [esp + 0x38]
mov edx, dword [edx + 0x60]
push eax
push edi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x2c], 0
je 0x412794
mov eax, dword [ebp + 0x1e0]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x20c]
lea ecx, [edi - 1]
add eax, dword [esp + 0xcc]
lea edx, [esp + 0x88]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0043d36e
mov eax, dword [ebp + 0x1e0]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x20c]
add eax, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
imul ecx, dword [ebp + 0x1d4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx + edi + 1]
push edx
mov ecx, ebx
call fcn.0043ce89
add esi, 0xfffffff0
mov byte [esp + 0xb4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4127be
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4127be
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
imul ecx, dword [esp + 0x2c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
mov dword [esp + 0x24], edi
jmp 0x41295c
cmp eax, 1
jne 0x41295c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
imul ecx, dword [esp + 0x2c]
mov eax, 0xae147ae1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add dword [esp + 0x24], ecx
cmp word [esi + 0x10], 0
jbe 0x41295c
call fcn.00440a5b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4129fe
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xb4], 4
movzx edx, word [ecx + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov dword [esp + 0x28], edi
add edi, 1
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
mov dword [esp + 0x50], edx
jge 0x41287c
push edi
lea ecx, [esp + 0x24]
call fcn.00402ab0
mov esi, dword [esp + 0x20]
test edi, edi
mov ax, word [esp + 0x50]
mov ecx, dword [esp + 0x28]
mov word [esi + ecx*2], ax
jl 0x412a08
cmp edi, dword [esi - 8]
jg 0x412a08
mov eax, dword [esp + 0x24]
push 0
push 1
push esi
mov dword [esi - 0xc], edi
push 0
mov word [esi + edi*2], 0
mov edi, dword [esp + 0xdc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x60]
push 0x10
push edi
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x2c], 0
je 0x412938
mov eax, dword [ebp + 0x1e0]
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x20c]
add ecx, 0xffffffff
add eax, edi
push eax
push ecx
lea edx, [esp + 0x88]
push edx
mov ecx, ebx
call fcn.0043d36e
mov eax, dword [ebp + 0x1e0]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x20c]
add eax, edi
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
imul ecx, dword [esp + 0x30]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx + 1]
push eax
mov ecx, ebx
call fcn.0043ce89
add esi, 0xfffffff0
mov byte [esp + 0xb4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41295c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp dword [ebp + 0x15c], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
je 0x412973
mov edx, dword [eax + 0x2c]
jmp 0x412976
mov edx, dword [eax + 0x30]
call edx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
jmp 0x411c75
call fcn.0043cb4a
xor ecx, ecx
cmp dword [edi + 0x24], ecx
mov dword [esp + 0x54], 1
setg cl
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0xc4]
push edx
mov ecx, edi
call fcn.0043da25
cmp dword [esp + 0x54], 0
je 0x412a36
cmp dword [ebp + 0x158], 0
je 0x412a36
cmp dword [ebp + 0x21c], 0
jne 0x412a36
mov eax, dword [ebp + 0x154]
test eax, eax
jne 0x412a12
mov edx, dword [esp + 0x24]
jmp 0x412a1e
push 0x80004005
call fcn.00402a60
push 0x80070057
call fcn.00402a60
cmp eax, 1
jne 0x412a36
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xcc]
push eax
add ecx, 2
push ecx
push edx
mov ecx, ebp
call fcn.00419b40
mov byte [esp + 0xb4], 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], vtable.CPen.0
call fcn.00403060
mov dword [esp + 0xb4], 0xffffffff
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 0x412a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x2c