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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10062bee
push eax
mov dword fs:[0], esp
sub esp, 0x98
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x1003db8c
cmp byte [ebp + 0x18], 0
je 0x1003db7c
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov edi, dword [ebp + 8]
mov dword [esp + 0xac], ebx
cmp dword [edi + 0x10], ebx
je 0x1003db64
push 0x2e
pop eax
push 2
mov ecx, ebx
mov dword [esp + 0x24], 0x24047a00
mov word [esp + 0x28], 0x19ce
mov byte [esp + 0x2a], 0x49
mov word [esp + 0x18], ax
pop esi
mov dword [esp + 0x2c], ecx
cmp esi, 2
jne 0x1003d945
push 5
pop ecx
push ecx
mov dword [esp + 0x30], ecx
pop esi
jmp 0x1003d98b
movzx edx, byte [esp + esi + 0x21]
mov eax, esi
sub eax, ecx
movzx eax, byte [esp + eax + 0x1e]
movzx ecx, word [esp + eax*2 + 0x14]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [esp + esi + 0x20]
add ecx, edx
mov edx, 0x6e2c
mov word [esp + eax*2 + 0x14], cx
lea eax, [esp + 0x2c]
push eax
push 0x2a1b
push 1
mov cl, 1
call fcn.1003c126
mov ecx, dword [esp + 0x38]
add esp, 0xc
add esi, 2
cmp esi, 7
jb 0x1003d935
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x16], ax
lea ecx, [esp + 0x4c]
mov word [esp + 0x4c], ax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x60], ebx
call fcn.100072f5
lea eax, [esp + 0x4c]
mov byte [esp + 0xac], 1
push eax
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.1003b146
pop ecx
push ebx
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 3
call fcn.1000737d
mov edi, dword [esp + 0x38]
mov eax, edi
mov esi, dword [esp + 0x34]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x1003db50
push 0x2d
pop eax
push 2
mov ecx, ebx
mov dword [esp + 0x1c], 0x22035000
mov word [esp + 0x20], 0xd99
mov word [esp + 0x2c], ax
pop esi
mov dword [esp + 0x30], ecx
cmp esi, 2
jne 0x1003da34
push 4
pop ecx
push ecx
mov dword [esp + 0x34], ecx
pop esi
jmp 0x1003da6a
movzx edx, byte [esp + esi + 0x19]
mov eax, esi
sub eax, ecx
movzx eax, byte [esp + eax + 0x16]
movzx eax, word [esp + eax*2 + 0x28]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [esp + esi + 0x18]
push ecx
mov word [esp + eax*2 + 0x2c], cx
lea eax, [esp + 0x34]
push eax
call fcn.1003decd
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
add esi, 2
cmp esi, 6
jb 0x1003da24
xor eax, eax
mov dword [esp + 0x78], 7
mov word [esp + 0x2a], ax
lea ecx, [esp + 0x64]
mov word [esp + 0x64], ax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x78], ebx
call fcn.100072f5
mov edx, dword [ebp + 8]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0xb0], 4
call fcn.1003b146
pop ecx
mov esi, eax
lea eax, [esp + 0x34]
cmp eax, esi
je 0x1003dae2
mov ecx, eax
call fcn.10040ee7
mov ecx, dword [esi]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x3c], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [esp + 0x7c]
call fcn.10040ee7
push ebx
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 3
call fcn.1000737d
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x1003db50
push esi
lea ecx, [esp + 0x8c]
call fcn.10008281
lea eax, [esp + 0x88]
mov byte [esp + 0xac], 6
push eax
push ecx
lea eax, [esp + 0x48]
push 1
push eax
call fcn.1003d7bc
add esp, 0x10
mov byte [esp + 0xac], 3
lea ecx, [esp + 0x88]
push ebx
push 1
call fcn.1000737d
add esi, 0x18
cmp esi, edi
jne 0x1003db09
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], bl
call fcn.10040ee7
mov ecx, dword [ebp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.10040d65
lea ecx, [esp + 0x40]
call fcn.100410c0
jmp 0x1003dbdb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x1003dbdb
xor ebx, ebx
cmp byte [ebp + 0xc], bl
je 0x1003dbca
mov dword [esi], ebx
jmp 0x1003dbc3
push ebx
push dword [ebp + 0x10]
mov edx, 0x505a
mov ecx, 0x12a5
push 0x4e0d
push esi
push 1
push 0x7912
push 1
push 0x3c42
call fcn.1003b941
add esp, 0x20
inc dword [esi]
cmp dword [esi], 3
jl 0x1003db97
jmp 0x1003dbdb
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x1003dbdb
push ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret