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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [ebx + 0xc]
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x47a4b0]
push ebx
mov dword [ebp - 0x1c], eax
call fcn.0040145a
test eax, eax
pop ecx
jne 0x41ae20
xor edi, edi
cmp dword [esi + 0xd8], edi
je 0x41ae18
cmp dword [ebp - 0x10], edi
jne 0x41ae22
mov eax, dword [esi + 0xc8]
jmp 0x41ae24
xor edi, edi
xor eax, eax
push eax
push 1
push edi
lea ecx, [ebp - 0x54]
call fcn.00447c50
push ebx
call fcn.0040145a
test eax, eax
pop ecx
jne 0x41ae50
cmp dword [esi + 0xd8], edi
je 0x41ae48
cmp dword [ebp - 0x10], edi
jne 0x41ae50
mov eax, dword [esi + 0xc8]
jmp 0x41ae52
xor eax, eax
push eax
push 2
push edi
lea ecx, [ebp - 0x5c]
call fcn.00447c50
mov eax, dword [ebx]
lea ecx, [esi + 0xb0]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0x68], eax
je 0x41ae7f
mov eax, dword [esi + 0xec]
add eax, 5
jmp 0x41ae86
push edi
call dword [sym.imp.user32.dll_GetSystemMetrics]
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x70], eax
jne 0x41ae9e
call fcn.004580ae
mov eax, dword [eax + 4]
cmp dword [eax + 0x170], edi
jne 0x41aead
mov eax, dword [esi + 0x70]
sub eax, dword [esi + 0x80]
mov dword [esi + 0x88], eax
fild dword [esi + 0x84]
fild dword [esi + 0xf0]
fmul qword [0x4661d8]
fsubp st(1)
call fcn.0042d284
cdq
idiv dword [esi + 0x98]
or ecx, 0xffffffff
push 1
mov dword [esi + 0x7c], edi
sub ecx, eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x78], eax
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xe8], ecx
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jge 0x41b391
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x108]
mov edi, dword [eax + ecx*4]
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [eax + 0x1b4]
call fcn.00410446
lea eax, [ebp - 0x94]
push ebx
push eax
mov ecx, edi
call fcn.0041081a
mov ecx, eax
push 0x47661c
mov eax, dword [ecx]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x114]
mov ecx, dword [ecx + 4]
push eax
mov dword [ebp - 0x48], ecx
call fcn.0042c509
pop ecx
test eax, eax
pop ecx
je 0x41af5c
mov ecx, edi
call fcn.00411008
test al, al
je 0x41afc5
cmp dword [esi + 0xdc], 0
je 0x41afc5
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00410998
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044401f
lea ecx, [ebp - 0x6c]
call fcn.00443f32
cmp dword [edi + 0x7cc], 0
jg 0x41af95
mov ecx, edi
call fcn.00411008
test al, al
je 0x41afc5
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00443ca7
lea eax, [ebp - 0xc4]
push ebx
push eax
mov ecx, edi
call fcn.00410cb5
mov ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, eax
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41afd7
mov eax, dword [esi + 0x94]
add eax, dword [ebp - 4]
sub dword [esi + 0x78], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x88]
imul ecx, dword [ebp - 0xc]
add ecx, dword [esi + 0x78]
cmp ecx, eax
jle 0x41aff8
sub eax, dword [ebp - 4]
inc dword [esi + 0x7c]
or dword [ebp - 0xc], 0xffffffff
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x80]
cmp dword [esi + 0x78], eax
jge 0x41b010
inc dword [esi + 0x7c]
mov dword [ebp - 0xc], 1
mov dword [esi + 0x78], eax
cmp dword [ebp - 0x10], 0
je 0x41b025
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0xe8]
jg 0x41b38f
mov eax, dword [esi + 0x78]
mov edx, dword [edi + 0x28]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x98]
add eax, dword [esi + 0x84]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x78]
add eax, dword [ebp - 4]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x48]
lea ecx, [ecx + eax*2]
add eax, ecx
add eax, edx
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x18], eax
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x4c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [ebp - 0x18]
add eax, dword [esi + 0x78]
mov dword [edi + 4], eax
add ecx, dword [edi + 4]
mov eax, dword [edi + 0x18]
mov dword [edi + 0xc], ecx
mov ecx, dword [edi + 0x28]
mov dword [edi + 8], eax
add eax, ecx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x41b0a2
mov ecx, dword [esi + 0x94]
add ecx, dword [ebp - 4]
add dword [esi + 0x78], ecx
cmp eax, dword [ebp - 8]
jne 0x41b0b3
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jne 0x41b1f0
mov eax, dword [esi + 0x80]
cdq
sub eax, edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x98]
mov ecx, eax
imul ecx, dword [esi + 0x7c]
sar dword [ebp - 8], 1
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [edi + 0x28]
add eax, dword [esi + 0x88]
add ecx, dword [esi + 0x84]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
push eax
mov ecx, ebx
call fcn.004472bb
push dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, ebx
add eax, dword [esi + 0x90]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00447791
mov eax, dword [ebp - 0x64]
push dword [ebp - 0x30]
sub eax, dword [esi + 0x90]
mov ecx, ebx
push eax
call fcn.004477dd
push dword [ebp - 4]
mov ecx, ebx
call fcn.004472bb
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jle 0x41b1de
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.004472bb
cmp dword [ebp - 0xc], 1
mov dword [ebp - 4], eax
jne 0x41b194
push dword [ebp - 0x40]
lea eax, [ebp - 0xac]
mov ecx, ebx
push dword [ebp - 0x44]
push eax
call fcn.00447791
mov eax, dword [ebp - 0x30]
push dword [esi + 0x90]
sub eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0
push ebx
call fcn.0040225a
mov eax, dword [ebp - 0x64]
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x41b1d2
push dword [ebp - 0x20]
lea eax, [ebp - 0x9c]
mov ecx, ebx
push dword [ebp - 0x24]
push eax
call fcn.00447791
mov eax, dword [ebp - 0x30]
push dword [esi + 0x90]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
push ebx
call fcn.0040225a
mov eax, dword [ebp - 8]
add esp, 0x18
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
push dword [ebp - 4]
mov ecx, ebx
call fcn.004472bb
jmp 0x41b1ea
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x18], eax
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x98]
mov ecx, eax
imul ecx, dword [esi + 0x7c]
cdq
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x18]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, ebx
add eax, dword [esi + 0x84]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004472bb
push dword [ebp - 0x28]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa4]
mov ecx, ebx
push dword [ebp - 0x2c]
push eax
call fcn.00447791
push dword [ebp - 0x70]
mov ecx, ebx
push dword [ebp - 0x2c]
call fcn.004477dd
push dword [ebp - 4]
mov ecx, ebx
call fcn.004472bb
mov eax, dword [edi + 0x114]
push 0x47661c
push eax
call fcn.0042c509
pop ecx
test eax, eax
pop ecx
jne 0x41b28e
cmp dword [edi + 0x7cc], eax
jg 0x41b299
mov ecx, edi
call fcn.00411008
test al, al
je 0x41b312
cmp dword [esi + 0xdc], 0
je 0x41b312
lea eax, [ebp - 0xb4]
push ebx
push eax
mov ecx, edi
call fcn.0041081a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 9]
mov ecx, ebx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004472bb
push dword [ebp - 0x28]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x7c]
mov ecx, ebx
push dword [ebp - 0x2c]
push eax
call fcn.00447791
push dword [ebp - 0x28]
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.004477dd
push dword [ebp - 4]
mov ecx, ebx
call fcn.004472bb
push dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x3c]
push ecx
mov ecx, esp
push eax
call fcn.00443ca7
push ebx
mov ecx, edi
call fcn.00410d13
cmp dword [ebp + 0x14], 0
je 0x41b36b
lea eax, [ebp - 0x8c]
push eax
push dword [ebx + 8]
call dword [sym.imp.gdi32.dll_GetViewportOrgEx]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x88]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
neg edi
mov ecx, dword [ecx + edx*4]
lea edx, [edi - 0x64]
cmp dword [ecx + 8], edx
jle 0x41b380
mov eax, dword [eax + 0x108]
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x18]
add eax, edi
cmp dword [ecx + 8], eax
jge 0x41b380
push ebx
jmp 0x41b37b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax + 0x108]
mov ecx, dword [eax + ecx*4]
call fcn.004102f4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x10]
jl 0x41aefc
xor edi, edi
mov eax, dword [ebx]
push dword [ebp - 0x68]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x14]
inc eax
imul eax, dword [esi + 0x98]
add eax, dword [esi + 0x84]
mov dword [esi + 0x74], eax
call fcn.00418a6a
test eax, eax
jl 0x41b45c
cmp dword [ebp - 0x10], edi
jne 0x41b45c
push dword [esi + 0xc4]
lea ecx, [ebp - 0x3c]
push 1
push edi
call fcn.00447c50
mov ecx, dword [ebp - 0x14]
call fcn.004192a1
mov esi, eax
mov eax, dword [ebx]
push 5
mov ecx, ebx
call dword [eax + 0x24]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.004472bb
add esi, 0x14
lea edi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 5
mov dword [ebp + 0x10], eax
pop esi
lea eax, [ebp - 0x84]
push esi
push esi
push eax
call dword [sym.imp.user32.dll_InflateRect]
push esi
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebx + 4]
call dword [sym.imp.gdi32.dll_RoundRect]
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.004472bb
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004472bb
mov esi, vtable.CGdiObject.0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.00447c3a
jmp 0x41b461
mov esi, vtable.CGdiObject.0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
call fcn.00447c3a
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
call fcn.00447c3a
lea ecx, [ebp - 0x1c]
call fcn.00443f32
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10