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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bc23b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov edx, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], edi
call eax
cmp dword [ebx + 0x420], 0
mov dword [esp + 0x24], eax
jne 0x412123
push 0x58
lea ecx, [esp + 0x7c]
push 0
push ecx
mov dword [esp + 0x80], 0
call fcn.004a1210
mov eax, dword [ebx + 0x1d8]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.004020a0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esi], eax
call fcn.004141d0
xor eax, eax
cmp dword [ebx + 0x3dc], eax
je 0x4120dc
mov byte [esp + 0x8e], 5
mov edx, dword [ebx + 0x1c0]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x88], al
mov byte [esp + 0x89], al
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x8f], 1
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0x420], eax
mov ecx, dword [ebx + 0x420]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 2
push edi
mov dword [esp + 0x28], eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x41216d
cmp dword [ebx + 0x40c], 0
je 0x412156
push eax
push edi
call esi
mov edx, dword [ebx + 0x1c8]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x1cc]
push eax
jmp 0x4121cd
cmp eax, 2
jne 0x412187
push 1
push edi
call esi
mov ecx, dword [ebx + 0x1c4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4121d4
cmp eax, 3
jne 0x4121a1
push 1
push edi
call esi
mov edx, dword [ebx + 0x1d0]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4121d4
test eax, eax
je 0x4121aa
cmp eax, 5
jne 0x4121d4
cmp dword [ebx + 0x40c], 0
je 0x4121b8
push 1
push edi
call esi
mov eax, dword [ebx + 0x1d4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebx + 0x1cc]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [ebx + 0x428], 0
je 0x41222c
mov edx, dword [ebx + 0x42c]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [ebx + 0xb0]
mov ecx, dword [ebx + 0xac]
mov esi, eax
mov eax, dword [ebx + 0xa8]
add edx, eax
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0xb4]
add eax, ecx
mov dword [esp + 0x60], ecx
push esi
lea ecx, [esp + 0x60]
push ecx
push edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebx + 0x1bc], 0
je 0x412299
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.00415f30
xor esi, esi
lea ecx, [ebx + 0x1ac]
push eax
mov dword [esp + 0xec], esi
call fcn.00408830
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push ebx
call fcn.004164e0
mov edx, dword [ebx]
mov eax, dword [edx + 0xd8]
mov ecx, ebx
mov dword [ebx + 0x1bc], esi
call eax
mov eax, dword [ebx + 0x1ac]
lea ecx, [ebx + 0x1ac]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4122b7
mov edx, dword [eax + 4]
push edx
call fcn.004021f0
mov eax, dword [ebx + 0xb8]
add eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x3e8]
mov dword [esp + 0x18], edx
test eax, eax
je 0x412418
jmp 0x4122e9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea esi, [eax + 8]
mov ecx, 7
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xb4]
mov eax, dword [esp + 0x3c]
add ecx, dword [ebx + 0xac]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x30], eax
jg 0x412414
mov eax, dword [ebx + 0x1ac]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push 0
lea esi, [eax + edi*2]
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x24]
push esi
push ecx
push 4
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [ebx + 0x184], 0
je 0x412401
cmp dword [ebx + 0x1a4], 0
je 0x412401
mov eax, dword [ebx + 0x180]
cmp eax, edi
jl 0x412401
mov edx, dword [esp + 0x4c]
lea ecx, [edi + edx]
cmp eax, ecx
jge 0x412384
cmp dword [esp + 0x44], 0
jne 0x41238a
cmp eax, ecx
jle 0x41238a
test edx, edx
jne 0x412401
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
sub eax, edi
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
test eax, eax
je 0x412401
mov esi, dword [ebx + 0xb8]
add esi, dword [ebx + 0xa8]
mov edi, dword [esp + 0x18]
add esi, dword [esp + 0x6c]
cmp dword [ebx + 0x404], 0
je 0x4123e0
mov eax, dword [ebx + 0x1c0]
mov ecx, dword [esp + 0x1c]
push 0x550009
push 0
push 0
push 0
push eax
push 1
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebx + 0x1c0]
add edx, edi
mov dword [ebx + 0x190], esi
inc esi
mov dword [ebx + 0x194], edi
mov dword [ebx + 0x19c], edx
mov dword [ebx + 0x198], esi
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jne 0x4122e1
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jne 0x41242a
cmp dword [ebx + 0x418], 0
ja 0x412437
cmp dword [ebx + 0x410], 0
jbe 0x4124c1
mov eax, dword [ebx + 0x410]
cmp ecx, 1
jne 0x412448
mov eax, dword [ebx + 0x418]
mov ecx, dword [ebx + 0x414]
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xb0]
lea ecx, [edx + eax - 1]
mov edx, dword [ebx + 0xb4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0xac]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
add ecx, edx
mov dword [esp + 0x54], eax
push 5
lea edx, [ecx - 1]
lea eax, [esp + 0x38]
push eax
dec ecx
push edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x64], edx
call dword [sym.imp.GDI32.dll_Polyline]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x1ac]
mov edx, dword [ebx + 0x460]
mov dword [ebx + 0x1bc], 0
sub edx, dword [ecx - 0xc]
mov ecx, dword [0x4ee750]
push edx
push str.BARCODE_CHARSLEFT
call fcn.0046c980
mov eax, dword [ebx + 0x1ac]
mov ecx, dword [eax - 0xc]
cmp ecx, dword [ebx + 0x464]
mov ecx, dword [0x4ee750]
sbb edx, edx
inc edx
push edx
push str.BARCODE_MINCHARSMET
call fcn.0046c980
mov ecx, dword [0x4ee74c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push 0
push 0x4c3af8
push 0x12
call edx
mov eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0049dc2a
mov esp, ebp
pop ebp
ret 0xc