Function at 0x441260
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x78]
push 0x104
mov dword [esp + 0x48], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [0x46b21c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x78]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x4412e8
lea eax, [esp + 0x78]
shr eax, 0x10
jne 0x4412b4
xor ecx, ecx
lea edx, [esp + 0x78]
mov cx, dx
push ecx
lea ecx, [esp + 0x34]
call fcn.00402fe0
jmp 0x4412e8
lea eax, [esp + 0x78]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x4412e8
push esi
lea ecx, [esp + 0x34]
call fcn.00401ce0
test eax, eax
je 0x4412e8
mov edi, dword [esp + 0x30]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, str.Fonts_
test eax, eax
je 0x4412f8
push str.Fonts_
call ebx
push str.Fonts_
push eax
lea ecx, [esp + 0x38]
call fcn.004026d0
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x4b7318
call fcn.0043e260
mov eax, dword [0x4b7324]
mov edx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x34], edx
test eax, eax
mov dword [esp + 0x48], eax
jle 0x44199f
mov eax, dword [esp + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
mov ecx, dword [eax + 0x1c]
lea edi, [eax + 0x1c]
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [ecx + 0xc]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x44136d
mov dword [esp + 0x38], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x441384
mov edx, dword [0x46b21c]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 0xc]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402e60
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
push esi
push 1
mov ecx, edi
call fcn.0040ad80
mov edx, dword [0x46b21c]
lea eax, [ebp + 1]
mov dword [esp + 0x58], eax
push eax
lea eax, [esp + 0x30]
push 0x46bb3c
push eax
mov dword [esp + 0x38], edx
call fcn.004036a0
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push ebp
mov ecx, edi
call fcn.0040ad10
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x60]
push ecx
push 0
mov eax, dword [edx + 0xc]
mov dword [esp + 0x68], 0
push eax
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x441419
push 0
push 0
push 0
push 0
push 0x47f6f8
push 1
push 3
push ebp
mov ecx, edi
call fcn.0040ad10
lea edx, [esp + 0x38]
lea eax, [esp + 0x54]
push edx
push eax
mov ecx, 0x4b72e8
call fcn.004449e0
mov esi, dword [esp + 0x54]
mov eax, dword [0x4b72ec]
cmp esi, eax
je 0x441582
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x441454
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x441468
mov ecx, dword [0x46b21c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00402e60
push 0
push 0x46c140
lea ecx, [esp + 0x1c]
call fcn.004075c0
cmp eax, 0xffffffff
jne 0x441539
mov edx, dword [0x46b21c]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401eb0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
push edx
call fcn.00429290
lea ecx, [esp + 0x24]
call fcn.00401e80
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
cmp ecx, eax
je 0x44150e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4414dc
mov edx, dword [0x46b220]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4414e3
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4414f3
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004027f0
jmp 0x44150a
lea ecx, [esp + 0x14]
call fcn.00402690
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x40]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441539
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441539
mov edx, dword [esp + 0x40]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push eax
push 1
push 1
push ebp
mov ecx, edi
call fcn.0040ad10
mov eax, dword [esp + 0x14]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441920
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441920
mov edx, dword [esp + 0x14]
jmp 0x441914
mov eax, str.Bold
mov dword [esp + 0x68], str.Bold
test eax, eax
mov dword [esp + 0x6c], str.Italic
mov dword [esp + 0x70], str.Narrow
mov dword [esp + 0x74], 0
je 0x441920
lea ebx, [esp + 0x68]
mov ecx, dword [0x46b21c]
mov edx, 0x46b2c4
test edx, edx
mov dword [esp + 0x24], ecx
je 0x441600
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x441600
push esi
lea ecx, [esp + 0x28]
call fcn.00401ce0
test eax, eax
je 0x441600
mov eax, dword [esp + 0x24]
inc esi
push esi
push 0x46b2c4
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00401f50
mov esi, dword [ebx]
mov ecx, dword [0x46b21c]
test esi, esi
mov dword [esp + 0x3c], ecx
je 0x441646
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x441646
push edi
lea ecx, [esp + 0x40]
call fcn.00401ce0
test eax, eax
je 0x441646
mov edx, dword [esp + 0x3c]
inc edi
push edi
push esi
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [0x46b21c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x3c]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x58]
push edx
call fcn.00401eb0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x28]
push eax
call fcn.00429290
lea ecx, [esp + 0x4c]
call fcn.00401e80
mov ecx, dword [0x46b21c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.00401eb0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00429290
lea ecx, [esp + 0x20]
call fcn.00401e80
mov eax, dword [esp + 0x28]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4416f0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4416f6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
jmp 0x4416f6
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x3c]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441721
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x441721
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x44174c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x44174c
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, 0x4b72e8
call fcn.004449e0
mov esi, dword [esp + 0x5c]
mov eax, dword [0x4b72ec]
cmp esi, eax
jne 0x4417a9
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x46b220]
add ebx, 4
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x44179b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x44179b
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
cmp dword [ebx], 0
jne 0x4415b3
jmp 0x441920
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4417c3
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4417d7
mov ecx, dword [0x46b21c]
push eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00402e60
push 0
push 0x46c140
lea ecx, [esp + 0x18]
call fcn.004075c0
cmp eax, 0xffffffff
jne 0x4418a8
mov edx, dword [0x46b21c]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x30]
call fcn.00401eb0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
call fcn.00429290
lea ecx, [esp + 0x20]
call fcn.00401e80
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x441881
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x44184b
mov edx, dword [0x46b220]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x441852
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x441862
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.004027f0
jmp 0x44187d
lea ecx, [esp + 0x10]
call fcn.00402690
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4418a8
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4418a8
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
push 0
push 0
push 0
push 0
push eax
push 1
push 1
push ebp
add ecx, 0x1c
call fcn.0040ad10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4418f1
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4418f1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441920
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441920
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00421490
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov eax, dword [esp + 0x2c]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441966
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441966
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x38]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x441995
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441995
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
cmp ebp, dword [esp + 0x48]
jl 0x441331
mov eax, dword [esp + 0x44]
xor edi, edi
add eax, 0x1c
push edi
push edi
push 0x1004
mov ecx, dword [eax]
mov dword [esp + 0x34], edi
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [esp + 0x34], edi
cmp esi, edi
mov dword [esp + 0x20], esi
jle 0x441c64
mov eax, dword [0x46b21c]
mov ecx, 0x100
mov dword [esp + 0x14], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4419ec
cmp dword [eax - 4], ecx
jge 0x441a31
mov ebx, dword [eax - 8]
cmp ebx, 0x100
jle 0x4419f9
mov ecx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ce0
test eax, eax
je 0x441a31
mov edi, dword [esp + 0x14]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [eax - 8], ebx
call fcn.004028a0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
push 0xff
push eax
lea esi, [ebx + 0x1c]
push 0
push edi
mov ecx, esi
call fcn.00444720
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00401f50
mov ecx, dword [0x46b21c]
push 0xff
mov dword [esp + 0x30], ecx
push 0x100
lea ecx, [esp + 0x34]
call fcn.00402f30
push eax
push 1
push edi
mov ecx, esi
call fcn.00444720
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call fcn.00401f50
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 8]
test eax, eax
jne 0x441c3f
lea eax, [esp + 0x48]
mov ecx, 0x4b72e8
push eax
call fcn.0043e260
mov eax, dword [esp + 0x48]
mov ecx, dword [0x4b72ec]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x441b50
add eax, 0x10
lea ecx, [esp + 0x1c]
push eax
call fcn.00429290
push 0
push 0x46c140
lea ecx, [esp + 0x24]
call fcn.004075c0
cmp eax, 0xffffffff
jne 0x441b0a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
add ecx, 0x10
lea eax, [esp + 0x58]
push ecx
push edx
push eax
call fcn.00402d10
push eax
lea ecx, [esp + 0x20]
call fcn.004082c0
lea ecx, [esp + 0x58]
call fcn.00401e80
mov ecx, dword [esp + 0x10]
push 0
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.004075c0
test eax, eax
je 0x441c05
lea edx, [esp + 0x4c]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00444780
lea ecx, [esp + 0x1c]
call fcn.00401e80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b72ec]
cmp eax, ecx
jne 0x441abe
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 0x4b72e8
call fcn.0043e260
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x4b72ec]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x441c3b
add eax, 0x10
lea ecx, [esp + 0x18]
push eax
call fcn.00429290
push 0
push 0x46c140
lea ecx, [esp + 0x20]
call fcn.004075c0
cmp eax, 0xffffffff
jne 0x441bc1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
add edx, 0x10
lea ecx, [esp + 0x54]
push edx
push eax
push ecx
call fcn.00402d10
push eax
lea ecx, [esp + 0x1c]
call fcn.004082c0
lea ecx, [esp + 0x54]
call fcn.00401e80
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [edx + 0xc]
call fcn.004075c0
test eax, eax
je 0x441c20
lea ecx, [esp + 0x40]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00444780
lea ecx, [esp + 0x18]
call fcn.00401e80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b72ec]
cmp eax, ecx
jne 0x441b75
jmp 0x441c3b
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 0x1c]
push eax
push 1
push edi
call fcn.0040b730
lea ecx, [esp + 0x1c]
call fcn.00401e80
jmp 0x441c3f
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x1c]
push edx
push 1
push edi
call fcn.0040b730
lea ecx, [esp + 0x18]
call fcn.00401e80
jmp 0x441c3f
inc dword [esp + 0x28]
lea ecx, [esp + 0x2c]
call fcn.00401e80
lea ecx, [esp + 0x14]
call fcn.00401e80
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x4419ce
mov esi, eax
mov eax, dword [0x46b21c]
push str.No_Font_Path:__d____d
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], eax
call fcn.00402a90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004036a0
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.00401e80
mov ecx, dword [esp + 0x44]
push 0x456
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x50]
call fcn.00401e80
lea ecx, [esp + 0x30]
call fcn.00401e80
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret