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

Disassembly:
push 0xffffffffffffffff
push 0x452ad2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x190]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x16c], esi
je 0x40ae7e
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x70]
call fcn.00445e26
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x84]
call fcn.00445e26
mov edx, dword [esp + 0x18c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], esi
mov edi, dword [edx - 8]
mov dword [esp + 0x54], esi
cmp edi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
jne 0x40aeb9
mov esi, dword [esp + 0x174]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x40bfcc
mov eax, dword [esp + 0x180]
mov ebx, dword [esp + 0x17c]
lea esi, [ebp + 0xa0]
mov ecx, 0xf
lea edi, [esp + 0xb0]
mov dword [esp + 0x48], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], vtable.CFont.0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x16c], 1
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x34]
call fcn.0044d01e
mov esi, dword [esp + 0x178]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x12c]
push ecx
push edx
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x6c], ecx
push 0x47e458
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], eax
call fcn.00449cc3
push 0x47e458
lea ecx, [esp + 0x50]
mov byte [esp + 0x170], 2
call fcn.00449cc3
push 0x47e458
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 3
call fcn.00449cc3
mov eax, dword [esp + 0x190]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x16c], 4
mov dword [esp + 0x5c], edi
je 0x40afa7
mov eax, dword [esp + 0x60]
jmp 0x40afaf
mov edx, dword [ebp + 0x88]
mov eax, dword [edx]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x20], eax
call fcn.00445dc6
mov eax, dword [esp + 0x84]
push 0
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x174], 5
call fcn.00445f3f
mov edx, dword [esp + 0x18c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], 1
mov eax, dword [edx - 8]
test eax, eax
jl 0x40c000
cmp ecx, eax
jge 0x40b910
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0x9c]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0
call fcn.0040c070
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x170], 6
call fcn.00449d8e
lea ecx, [esp + 0x98]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b835
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0xa8]
push ecx
push edx
mov ecx, ebp
call fcn.0040c210
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 7
call fcn.00449d8e
lea ecx, [esp + 0xa4]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov ecx, dword [esp + 0x10]
xor edx, edx
mov al, byte [ecx]
cmp al, 0x2f
sete dl
mov eax, edx
test eax, eax
mov dword [esp + 0x38], eax
je 0x40b0ee
mov ecx, dword [ecx - 8]
lea eax, [esp + 0x74]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004454bb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 8
call fcn.00449d8e
lea ecx, [esp + 0x74]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov ecx, dword [esp + 0x10]
push 0x479d84
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b10d
mov dword [esp + 0x18], 1
jmp 0x40b7d0
mov ecx, dword [esp + 0x10]
push 0x479d80
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b130
mov dword [esp + 0x18], 2
jmp 0x40b7d0
mov edx, dword [esp + 0x10]
push 0x479d7c
push edx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b153
mov dword [esp + 0x18], 4
jmp 0x40b7d0
mov eax, dword [esp + 0x10]
push str.suib
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b176
mov dword [esp + 0x18], 3
jmp 0x40b7d0
mov ecx, dword [esp + 0x10]
push 0x479d74
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b1b1
mov dword [esp + 0x18], 9
push 1
lea edx, [esp + 0x18]
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
call fcn.0040c630
mov edi, eax
jmp 0x40b7d0
mov ecx, dword [esp + 0x10]
push 0x479d70
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b1ec
lea edx, [esp + 0x14]
push 1
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24], 0xa
call fcn.0040c630
mov edi, eax
jmp 0x40b7d0
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0xa
jne 0x40b208
mov dword [esp + 0x18], 9
mov edi, 1
jmp 0x40b7d0
cmp al, 9
jne 0x40b21e
mov dword [esp + 0x18], 0xa
mov edi, 1
jmp 0x40b7d0
push 0x479d6c
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b244
mov ecx, dword [ebp + 0x120]
mov dword [esp + 0x18], 5
push ecx
jmp 0x40b196
mov ecx, dword [esp + 0x10]
push 0x479d68
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b269
mov dword [esp + 0x18], 5
push 0x11
jmp 0x40b196
mov ecx, dword [esp + 0x10]
push 0x479d64
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b290
mov edx, dword [ebp + 0x124]
mov dword [esp + 0x18], 7
push edx
jmp 0x40b2b0
mov edx, dword [esp + 0x10]
push 0x479d60
push edx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b2cb
mov dword [esp + 0x18], 8
push 0x12
lea eax, [esp + 0x18]
lea ecx, [esp + 0x190]
push eax
push ecx
mov ecx, ebp
call fcn.0040c630
mov edi, eax
jmp 0x40b7d0
mov edx, dword [esp + 0x10]
push 0x479d5c
push edx
call fcn.00435ba4
add esp, 8
test eax, eax
je 0x40b7c8
mov eax, dword [esp + 0x10]
push str.al_l
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
je 0x40b7c8
mov ecx, dword [esp + 0x10]
push str.al_c
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b331
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x40b7d0
mov dword [esp + 0x54], 1
jmp 0x40b7d0
mov edx, dword [esp + 0x10]
push str.al_r
push edx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b363
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x40b7d0
mov dword [esp + 0x54], 2
jmp 0x40b7d0
mov eax, dword [esp + 0x10]
push 0x479d40
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b419
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18c]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
mov ecx, ebp
call fcn.0040c4d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 9
call fcn.00449d8e
lea ecx, [esp + 0x90]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40b3db
push 0
push 0
push eax
call fcn.00435b8d
add esp, 0xc
mov edi, eax
jmp 0x40b3e0
mov edi, 0x64
lea ecx, [esp + 0x70]
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.004454bb
mov eax, dword [eax]
push 0x479d3c
push eax
call fcn.0043582c
add esp, 8
lea ecx, [esp + 0x70]
neg eax
sbb eax, eax
add eax, 0xc
mov dword [esp + 0x18], eax
call fcn.00449c55
jmp 0x40b7d0
mov edx, dword [esp + 0x10]
push 0x479d38
push edx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b541
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0xd
call fcn.0040c4d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 0xa
call fcn.00449d8e
lea ecx, [esp + 0xa0]
mov byte [esp + 0x16c], 5
call fcn.00449c55
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], 2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, ebp
call fcn.0040c390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0xb
call fcn.00449d8e
lea ecx, [esp + 0x78]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov eax, dword [esp + 0x10]
push 0x479d34
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b4fe
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x28], eax
jmp 0x40b52d
mov eax, dword [esp + 0x10]
push 0x479d30
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b52d
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x40b491
jmp 0x40b7d0
mov eax, dword [esp + 0x10]
push str.ilst
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b57b
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0xe
call fcn.0040c630
mov edi, eax
jmp 0x40b7d0
mov eax, dword [esp + 0x10]
push str.icon
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b67e
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0x11
call fcn.0040c630
mov edi, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], 2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0xa0]
push ecx
push edx
mov ecx, ebp
call fcn.0040c390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0xc
call fcn.00449d8e
lea ecx, [esp + 0x9c]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov eax, dword [esp + 0x10]
push 0x479d34
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b63b
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x28], eax
jmp 0x40b66a
mov eax, dword [esp + 0x10]
push 0x479d30
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b66a
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x40b5c8
jmp 0x40b7d0
mov eax, dword [esp + 0x10]
push 0x479d1c
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b7be
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x190]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0xf
call fcn.0040c630
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00449be0
mov dword [esp + 0x3c], 3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0x98]
push ecx
push edx
mov ecx, ebp
call fcn.0040c390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0xd
call fcn.00449d8e
lea ecx, [esp + 0x94]
mov byte [esp + 0x16c], 5
call fcn.00449c55
mov eax, dword [esp + 0x10]
push str.mask
push eax
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b74d
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.00449d8e
lea edx, [esp + 0x14]
push 0xff00ff
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x5c], eax
jmp 0x40b7ad
mov ecx, dword [esp + 0x10]
push 0x479d34
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b77e
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x28], eax
jmp 0x40b7ad
mov ecx, dword [esp + 0x10]
push 0x479d30
push ecx
call fcn.00435ba4
add esp, 8
test eax, eax
jne 0x40b7ad
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
call fcn.0040c630
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x40b6c8
jmp 0x40b7d0
mov dword [esp + 0x18], 0
jmp 0x40b7d0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18c]
push ecx
push edx
mov ecx, ebp
call fcn.0040c1d0
mov ecx, dword [esp + 0x18]
cmp ecx, 0xd
jl 0x40b94b
cmp ecx, 0xf
jle 0x40b7ff
cmp ecx, 0x11
jne 0x40b94b
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40b94b
mov eax, dword [esp + 0x54]
dec eax
je 0x40b923
dec eax
jne 0x40b943
mov edx, dword [ebp + 0x74]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x184]
mov eax, dword [edx + eax*4]
sub ebx, eax
jmp 0x40b943
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40b87c
mov eax, dword [esp + 0x54]
dec eax
je 0x40b85c
dec eax
jne 0x40b87c
mov eax, dword [ebp + 0x74]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x184]
mov eax, dword [eax + edx*4]
sub ebx, eax
jmp 0x40b87c
mov eax, dword [ebp + 0x74]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x184]
mov eax, dword [eax + edx*4]
sub ebx, eax
mov eax, dword [esp + 0x17c]
sub ebx, eax
shr ebx, 1
add ebx, eax
mov eax, dword [ecx - 8]
lea edx, [esp + 0xa8]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40b8b3
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jg 0x40b8e2
mov dword [esp + 0x20], eax
jmp 0x40b8e2
mov ecx, dword [ebp + 0x88]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
mov ecx, dword [ecx - 8]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x68]
sub eax, ecx
mov ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, esi
push eax
push ebx
call dword [edx + 0x5c]
mov edx, dword [esp + 0xa8]
push 0x47e458
lea ecx, [esp + 0x50]
add ebx, edx
call fcn.00449dde
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], eax
jmp 0x40b94b
mov dword [esp + 0x18], 9
mov edi, 1
mov ecx, dword [esp + 0x18]
jmp 0x40b94b
mov edx, dword [ebp + 0x74]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x184]
mov eax, dword [edx + eax*4]
sub ebx, eax
mov eax, dword [esp + 0x17c]
sub ebx, eax
shr ebx, 1
add ebx, eax
mov dword [esp + 0x50], 0
lea eax, [ecx - 1]
cmp eax, 0x10
ja case.0x40b957.16
jmp dword [eax*4 + 0x40c010]
mov eax, dword [esp + 0x58]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.0044d075
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0xb0]
test ecx, ecx
mov dword [esp + 0xc0], eax
jne 0x40b9a3
add eax, eax
cmp eax, 0x384
mov dword [esp + 0xc0], eax
jle 0x40b9a3
mov dword [esp + 0xc0], 0x384
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x34]
call fcn.0044d01e
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp case.0x40b957.16
mov eax, dword [esp + 0x58]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.0044d075
mov ecx, dword [esp + 0x38]
test ecx, ecx
sete cl
mov byte [esp + 0xc4], cl
jmp 0x40ba3f
mov eax, dword [esp + 0x58]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.0044d075
mov ecx, dword [esp + 0x38]
test ecx, ecx
sete cl
mov byte [esp + 0xc6], cl
jmp 0x40ba3f
mov eax, dword [esp + 0x58]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.0044d075
mov ecx, dword [esp + 0x38]
test ecx, ecx
sete cl
mov byte [esp + 0xc5], cl
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x34]
call fcn.0044d01e
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x28]
jmp case.0x40b957.16
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x30]
jmp case.0x40b957.16
cmp edi, 0x1a
jae case.0x40b957.16
mov ecx, dword [ebp + edi*4 + 0xdc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp case.0x40b957.16
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, esi
neg eax
sbb eax, eax
add eax, 2
push eax
call fcn.0044c8c2
jmp case.0x40b957.16
cmp edi, 0x1a
jae case.0x40b957.16
mov eax, dword [ebp + edi*4 + 0xdc]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
add ecx, 2
push ecx
mov ecx, esi
call fcn.0044c8c2
jmp case.0x40b957.16
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40bb37
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + edx*4]
add ecx, edi
xor edi, edi
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x40bb30
mov eax, dword [ebp + 0x88]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + ecx*4]
mov ecx, ebp
shr eax, 1
add eax, edx
lea edx, [ebx + edi]
push eax
push edx
push ebx
push esi
call fcn.0040cc00
add ebx, edi
jmp case.0x40b957.16
mov edx, dword [esp + 0x184]
mov ecx, dword [esp + 0x17c]
push 0x64
sub edx, ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
jmp 0x40bb0d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je case.0x40b957.16
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40bbbb
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push 0
push ecx
push ebx
push esi
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.004499ca
lea eax, [esp + 0x10c]
mov ecx, ebp
push eax
call fcn.0040c690
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x20], eax
jg 0x40bc08
mov dword [esp + 0x20], eax
add ebx, ecx
jmp case.0x40b957.16
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push ecx
push edx
push eax
lea ecx, [ebp + 0x84]
call fcn.0040c060
mov ecx, dword [esp + 0x54]
push eax
push ecx
push ebx
push esi
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.004499ca
lea eax, [esp + 0x12c]
mov ecx, ebp
push eax
call fcn.0040c690
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x40], edx
add ebx, ecx
jmp case.0x40b957.16
mov eax, dword [ebp + 0x1b8]
test eax, eax
je case.0x40b957.16
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40bc6f
mov edx, dword [ebp + 0x1c0]
push eax
mov eax, dword [ebp + 0x1bc]
lea ecx, [ebp + 0x1b4]
push edi
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x138]
push esi
push edx
mov ecx, ebp
call fcn.0040cb40
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp edx, ecx
jg 0x40bca8
mov dword [esp + 0x20], ecx
add ebx, eax
jmp case.0x40b957.16
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [ebp + 0x1bc]
push 0
lea edx, [ebp + 0x1b4]
push edi
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
push ebx
lea eax, [esp + 0x130]
push esi
push eax
mov ecx, ebp
call fcn.0040cb40
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
add ebx, eax
jmp case.0x40b957.16
test edi, edi
je case.0x40b957.16
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40bd0f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
xor ecx, ecx
mov eax, dword [edx - 8]
test eax, eax
mov eax, dword [esp + 0x58]
setne cl
push ecx
push edi
push 0
push eax
push ebx
lea ecx, [esp + 0x128]
push esi
push ecx
mov ecx, ebp
call fcn.0040c810
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jg 0x40bd5d
mov dword [esp + 0x20], ecx
jmp 0x40bd5d
mov eax, dword [ebp + 0x88]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp dword [edx - 8], ecx
setne cl
push ecx
push edi
push eax
mov eax, dword [esp + 0x64]
push eax
push ebx
lea ecx, [esp + 0x148]
push esi
push ecx
mov ecx, ebp
call fcn.0040c810
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
add ebx, eax
test edi, edi
je case.0x40b957.16
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40bdb2
mov ecx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edi
push 0
push edx
push ebx
lea eax, [esp + 0x110]
push esi
push eax
mov ecx, ebp
call fcn.0040cab0
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp edx, ecx
jg 0x40bdee
mov dword [esp + 0x20], ecx
add ebx, eax
jmp case.0x40b957.16
mov edx, dword [ebp + 0x88]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 0
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push edi
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x110]
push eax
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.0040cab0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
add ebx, eax
jmp case.0x40b957.16
test edi, edi
jne 0x40bdfe
mov edi, 1
mov eax, dword [esp + 0x190]
test eax, eax
je 0x40be42
mov ecx, dword [esp + 0x17c]
mov eax, dword [esp + 0x64]
sub ebx, ecx
cmp eax, ebx
jg 0x40be1e
mov dword [esp + 0x64], ebx
mov eax, dword [ebp + 0x78]
lea ecx, [ebp + 0x70]
push ebx
push eax
call fcn.00445f3f
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x8c]
lea ecx, [ebp + 0x84]
push edx
push eax
call fcn.00445f3f
mov eax, dword [ebp + 0x88]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
push 0
mov eax, dword [eax + ecx*4]
imul eax, edi
add ebx, eax
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x88]
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x50], ebx
call fcn.00445f3f
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x17c]
mov dword [esp + 0x50], 1
mov dword [esp + 0x20], edx
jmp case.0x40b957.16
test edi, edi
jne 0x40be99
mov edi, 1
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x17c]
lea ecx, [eax*4]
mov eax, ebx
sub eax, edx
cdq
idiv ecx
test edx, edx
mov dword [esp + 0x5c], edx
je 0x40bebf
sub ecx, edx
add ebx, ecx
dec edi
mov ecx, edi
imul ecx, dword [esp + 0x6c]
lea ebx, [ebx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18c]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [edx - 8]
cmp ecx, eax
jle 0x40affc
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x180]
mov ecx, dword [esp + 0x58]
sub eax, edi
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [esp + 0x30]
call fcn.0044d075
mov ecx, dword [esp + 0x84]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x40bf5f
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x80]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x40bf4f
mov edx, dword [ebp + 0x74]
push 0x64
push ebx
push ecx
mov esi, dword [edx + eax*4]
call edi
mov ecx, dword [ebp + 0x74]
mov edx, dword [esp + 0x14]
add eax, esi
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40bf25
mov esi, dword [esp + 0x174]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x16c], 4
mov dword [esi], ebx
mov dword [esi + 4], eax
call fcn.00445df9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 3
call fcn.00449c55
lea ecx, [esp + 0x4c]
mov byte [esp + 0x16c], 2
call fcn.00449c55
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call fcn.00449c55
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 0xe
call fcn.0044d075
lea ecx, [esp + 0x18c]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00449c55
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x160
ret 0x20
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x64]
jmp 0x40beec