Function at 0x404d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48b074]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00402af0
add esp, 4
test eax, eax
je 0x404d6d
push 0
push str.Problem
push str.Problem
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419c
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.00403c30
mov esi, dword [ebp - 0x10c]
mov ebx, eax
xor eax, eax
add esp, 8
xor ecx, ecx
movzx edx, word [esi + 0x24]
add edx, esi
cmp ax, word [esi + 0x26]
jae 0x404dbc
nop dword [eax]
mov eax, ecx
and eax, 0x800000ff
jns 0x404db0
dec eax
or eax, 0xffffff00
inc eax
mov byte [edx], al
inc ecx
movzx eax, word [esi + 0x26]
inc edx
cmp ecx, eax
jl 0x404da0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._DEVMODE__n
call edi
push esi
call fcn.004051b0
add esp, 4
test ebx, ebx
jne 0x404f89
push esi
push str.C:_tempdevmode.dat
call fcn.00403d00
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x404f89
lea eax, [ebp - 0x108]
push eax
push str.C:_tempdevmode.dat
call fcn.00402fa0
add esp, 8
push str._DEVMODE2__n
call edi
push dword [ebp - 0x108]
call fcn.004051b0
lea eax, [ebp - 0x110]
push eax
push str.C:_tempdevmode.dat
call fcn.00402fa0
movzx edi, word [esi + 0x26]
mov ebx, eax
movzx eax, word [esi + 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x108]
add edi, eax
mov edx, dword [ebp - 0x110]
sub edi, 4
jb 0x404e61
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404e66
add ecx, 4
add edx, 4
sub edi, 4
jae 0x404e50
cmp edi, 0xfffffffc
je 0x404eab
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404e93
cmp edi, 0xfffffffd
je 0x404eab
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x404e93
cmp edi, 0xfffffffe
je 0x404eab
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x404e93
cmp edi, 0xffffffff
je 0x404eab
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x404eab
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push str.YIKES
push str.2_loaded_devmodes_are_inconsistent
push 0
call edi
jmp 0x404eb1
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test ebx, ebx
jne 0x404f89
mov ecx, dword [ebp - 0x108]
movzx eax, word [ecx + 0x26]
push eax
movzx eax, word [esi + 0x26]
push eax
movzx eax, word [ecx + 0x24]
push eax
movzx eax, word [esi + 0x24]
push eax
lea eax, [ebp - 0x104]
push str.dmSize:__d__d__dmDriverExtra:__d__d
push eax
call fcn.00406b80
add esp, 0x18
lea eax, [ebp - 0x104]
push ebx
push str.Size_comparison
push eax
push ebx
call edi
movzx ecx, word [esi + 0x26]
movzx eax, word [esi + 0x24]
add ecx, eax
je 0x404f65
mov eax, dword [ebp - 0x108]
mov edi, esi
sub eax, esi
mov dword [ebp - 0x110], eax
mov al, byte [eax + edi]
mov cl, byte [edi]
cmp cl, al
je 0x404f4f
movsx eax, al
push eax
movsx eax, cl
push eax
push ebx
lea eax, [ebp - 0x104]
push str._d_:_0x_x___0x_x
push eax
call fcn.00406b80
add esp, 0x14
lea eax, [ebp - 0x104]
push 0
push str.DEVMODES_differ
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
movzx eax, word [esi + 0x24]
inc ebx
movzx ecx, word [esi + 0x26]
inc edi
add ecx, eax
mov eax, dword [ebp - 0x110]
cmp ebx, ecx
jl 0x404f13
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00403c30
add esp, 8
mov ebx, eax
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042419c
mov esp, ebp
pop ebp
ret