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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4617a1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x47c020]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x47c020]
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.0040f820
mov dword [esp + 0xd8], 0
cmp dword [esp + 0x28], 0
jne 0x412df8
mov edx, dword [0x4815d4]
lea ecx, [esp + 0x48]
call fcn.00416d20
mov esi, eax
lea eax, [esp + 0x18]
cmp eax, esi
je 0x412de5
cmp dword [esp + 0x2c], 8
jb 0x412dc4
push dword [esp + 0x18]
call fcn.0044da7e
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.00412020
cmp dword [esp + 0x5c], 8
jb 0x412df8
push dword [esp + 0x48]
call fcn.0044da7e
add esp, 4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004141d0
mov eax, dword [0x481608]
test al, 1
jne 0x412e28
or eax, 1
xor edx, edx
push ecx
mov dword [0x481608], eax
call fcn.0040f6a0
add esp, 4
mov byte [0x48160c], 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.0040f820
push 6
push str.system
mov byte [esp + 0xe0], 1
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040e990
test eax, eax
jne 0x412eaa
cmp byte [0x48160c], 0
mov edx, 0x46c9b0
mov eax, 0x46c9bc
cmove edx, eax
cmp word [edx], 0
jne 0x412e8b
xor ecx, ecx
jmp 0x412e9f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0040fb90
push 0x58
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], 0
push 0
push eax
call fcn.004594a0
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 0x412ef0
mov eax, dword [0x481688]
mov byte [esp + 0x7b], 1
test al, 1
jne 0x412f35
or eax, 1
mov dword [0x48168c], 0x64
push 0x464bf0
mov dword [0x481688], eax
mov byte [0x481690], 0
call fcn.0044dbae
add esp, 4
cmp byte [0x481690], 0
je 0x412f58
mov eax, dword [0x48168c]
cmp eax, 0x64
je 0x412f58
push 0x64
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
jmp 0x412f5b
mov ebx, dword [ebp + 8]
mov eax, ebx
neg eax
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x64], eax
je 0x412f71
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 0x413084
push 0x60
call fcn.0044da2d
mov esi, eax
add esp, 4
test esi, esi
je 0x412fd1
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
jmp 0x412fd3
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x413084
lea ecx, [esi + 4]
mov dword [esi], edi
lea eax, [esp + 0x30]
cmp ecx, eax
je 0x412ff6
push 0xffffffffffffffff
push 0
push eax
call fcn.0040f820
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.004594a0
add esp, 0xc
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
push eax
call fcn.00415370
add esp, 4
push eax
mov byte [esp + 0xdc], 2
call fcn.004154f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00415530
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x5c], 8
jb 0x413069
push dword [esp + 0x48]
call fcn.0044da7e
add esp, 4
cmp byte [ebp + 0x18], 0
je 0x413086
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, 0x47d320
push eax
call fcn.0040f820
jmp 0x413086
xor edi, edi
cmp dword [esp + 0x44], 8
jb 0x413099
push dword [esp + 0x30]
call fcn.0044da7e
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 0x4130c3
push dword [esp + 0x18]
call fcn.0044da7e
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.0044e224
mov esp, ebp
pop ebp
ret