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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4615c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x47c008]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, edx
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.00401620
mov dword [esp + 0xd8], 0
cmp dword [esp + 0x28], 0
jne 0x413998
mov edx, dword [0x481584]
lea ecx, [esp + 0x48]
call fcn.00417810
mov esi, eax
lea eax, [esp + 0x18]
cmp eax, esi
je 0x413985
cmp dword [esp + 0x2c], 8
jb 0x413964
push dword [esp + 0x18]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00404330
cmp dword [esp + 0x5c], 8
jb 0x413998
push dword [esp + 0x48]
call fcn.0044d735
add esp, 4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00414d80
mov eax, dword [0x4815d8]
test al, 1
jne 0x4139c8
or eax, 1
xor edx, edx
push ecx
mov dword [0x4815d8], eax
call fcn.00412910
add esp, 4
mov byte [0x4815dc], al
xor eax, eax
mov dword [esp + 0x44], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.00401620
push 6
push str.system
mov byte [esp + 0xe0], 1
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040bc60
test eax, eax
jne 0x413a4a
cmp byte [0x4815dc], 0
mov edx, 0x46c9b8
mov eax, 0x46c9c4
cmove edx, eax
cmp word [edx], 0
jne 0x413a2b
xor ecx, ecx
jmp 0x413a3f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413a30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00401a00
push 0x58
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], 0
push 0
push eax
call fcn.00453020
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x80]
cmovae ecx, dword [esp + 0x30]
mov edi, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x413a90
mov eax, dword [0x4815e0]
mov byte [esp + 0x7b], 1
test al, 1
jne 0x413ad5
or eax, 1
mov dword [0x4815e4], 0x64
push 0x4648a0
mov dword [0x4815e0], eax
mov byte [0x4815e8], 0
call fcn.0044deff
add esp, 4
cmp byte [0x4815e8], 0
je 0x413af8
mov eax, dword [0x4815e4]
cmp eax, 0x64
je 0x413af8
push 0x64
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
jmp 0x413afb
mov ebx, dword [ebp + 8]
mov eax, ebx
neg eax
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x64], eax
je 0x413b11
add dword [esp + 0x74], 0x2bc
movzx eax, byte [esp + 0x79]
mov ecx, 1
cmp byte [ebp + 0x10], 0
cmovne eax, ecx
cmp byte [ebp + 0x14], 0
mov byte [esp + 0x79], al
movzx eax, byte [esp + 0x78]
cmovne eax, ecx
mov byte [esp + 0x78], al
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
test edi, edi
je 0x413c24
push 0x60
call fcn.0044d73a
mov esi, eax
add esp, 4
test esi, esi
je 0x413b71
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
jmp 0x413b73
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x413c24
lea ecx, [esi + 4]
mov dword [esi], edi
lea eax, [esp + 0x30]
cmp ecx, eax
je 0x413b96
push 0xffffffffffffffff
push 0
push eax
call fcn.00401620
mov al, byte [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x21], al
mov al, byte [ebp + 0x14]
push 0x3c
mov byte [esi + 0x22], al
lea eax, [esi + 0x24]
push 0
push eax
call fcn.00453020
add esp, 0xc
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
push eax
call fcn.00415e60
add esp, 4
push eax
mov byte [esp + 0xdc], 2
call fcn.00415fe0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00416020
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x5c], 8
jb 0x413c09
push dword [esp + 0x48]
call fcn.0044d735
add esp, 4
cmp byte [ebp + 0x18], 0
je 0x413c26
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, 0x47d330
push eax
call fcn.00401620
jmp 0x413c26
xor edi, edi
cmp dword [esp + 0x44], 8
jb 0x413c39
push dword [esp + 0x30]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
jb 0x413c63
push dword [esp + 0x18]
call fcn.0044d735
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0044d726
mov esp, ebp
pop ebp
ret