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

Disassembly:
sub esp, 0x31c
mov al, byte [0xb14094]
mov dword [esp], edx
push ebx
mov dword [esp + 0xc], ecx
push esi
push edi
mov ecx, 0x40
lea edi, [esp + 0x9d]
push ebp
mov byte [esp + 0xa0], al
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esp + 0x18], eax
je 0xb0d2d9
mov ecx, dword [esp + 0x10]
push 0xb16b90
mov dword [0xb16b90], 0x42
mov edx, dword [ecx + 0x10]
mov dword [0xb16b94], edx
mov dword [0xb16b98], eax
mov dword [0xb16ba4], 0x8010c
mov word [0xb16bb0], 1
mov dword [0xb16b9c], eax
call sub.comdlg32.dll_PrintDlgA
test eax, eax
jne 0xb0d0c2
mov ecx, dword [esp + 0x10]
push 0x30
push 0xb14094
push 0xb1419c
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
call fcn.00b0f060
mov dword [esp + 0x14], eax
test eax, eax
jne 0xb0d0f4
mov ecx, dword [esp + 0x10]
push 0x10
push 0xb14094
push 0xb14184
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
xor esi, esi
mov eax, dword [esp + 0x14]
push esi
push 0xb0eee0
push esi
push 9
push eax
call dword [sym.imp.GDI32.dll_Escape]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], esi
push ecx
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x40], 0xb14100
push eax
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jge 0xb0d166
mov ecx, dword [esp + 0x10]
push 0x10
push esi
push 0xb14168
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
xor esi, esi
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [0xb1698c]
push 0xb0ef70
mov dword [0xb16bd4], esi
mov eax, dword [ecx + 0x10]
push eax
push 0xb14158
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
mov dword [0xb16bfc], eax
call ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov dword [esp + 0x20], 1
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0xb16bd4], esi
jne 0xb0d21c
lea eax, [esp + 0x4c]
push 1
push esi
push esi
push esi
push eax
call ebx
test eax, eax
je 0xb0d1fc
lea eax, [esp + 0x4c]
mov ecx, dword [0xb16bfc]
push eax
push ecx
call edi
test eax, eax
jne 0xb0d1f4
lea eax, [esp + 0x4c]
push eax
call ebp
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0xb16bd4], esi
je 0xb0d1c0
cmp dword [0xb16bd4], esi
jne 0xb0d21c
cmp dword [0xb140f8], esi
je 0xb0d236
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 0x186a0
jl 0xb0d1b8
jmp 0xb0d236
mov ecx, dword [esp + 0x10]
push 0x30
push 0xb14094
push 0xb1419c
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x78]
push 0xa
add eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cdq
idiv dword [esp + 0x34]
dec eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_StartPage]
push 0x800
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0xb0d346
cmp dword [esp + 0x18], 0
jne 0xb0d2b4
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x10]
push 0x10
push 0xb14094
push 0xb14120
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xa0]
push 0x104
mov ecx, dword [ecx + 0x10]
call fcn.00b0fa00
test eax, eax
je 0xb0d5d8
lea eax, [esp + 0x2a4]
push 0x1001
lea ecx, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0xb0d284
mov ecx, dword [esp + 0x10]
push 0x10
push 0xb14094
push 0xb14144
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
xor esi, esi
xor edx, edx
mov ecx, dword [esp + 0x10]
cmp word [ecx], si
jbe 0xb0d372
mov ecx, dword [esp + 0x10]
add esi, 4
inc edx
mov eax, dword [ecx + 4]
mov ebp, dword [eax + esi - 4]
xor eax, eax
and dword [ebp + 6], 0xffff7fff
mov ax, word [ecx]
cmp eax, edx
jg 0xb0d353
mov ecx, dword [esp + 0x10]
call fcn.00b0d5f0
mov dword [esp + 0x1c], eax
test eax, eax
je 0xb0d54b
lea edx, [esp + 0x1a4]
mov ecx, dword [esp + 0x1c]
or dword [eax + 6], 0x8000
mov eax, dword [esp + 0x10]
push eax
push 0x100
call fcn.00b0cfc0
mov edi, eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
mov byte [ebx], 0
call fcn.00b0d000
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx + 0xa]
cmp eax, 6
jle 0xb0d3e1
mov ecx, 6
dec eax
sub edx, edx
div ecx
mov esi, eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00b0d000
dec esi
jne 0xb0d3d3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x10]
call fcn.00b0d5f0
mov ebp, eax
test ebp, ebp
je 0xb0d4af
mov ax, word [ebp + 0xa]
mov ecx, dword [esp + 0x1c]
add ecx, 0xa
cmp word [ecx], ax
mov dword [esp + 0x30], ecx
ja 0xb0d4af
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov dx, word [ecx + 0xc]
xor eax, eax
mov ax, word [ebp + 0xc]
add edx, 8
cmp edx, eax
jl 0xb0d4af
mov ecx, 0xffffffff
mov dword [esp + 0x1c], ebp
or dword [ebp + 6], 0x8000
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x1a4]
lea esi, [ecx - 1]
mov ecx, dword [esp + 0x10]
push ecx
push 0x100
mov ecx, ebp
call fcn.00b0cfc0
mov edi, eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00b0d000
xor eax, eax
xor edx, edx
mov ax, word [ebp + 0xa]
mov ecx, dword [esp + 0x30]
mov dx, word [ecx]
lea ecx, [esi + esi*2]
sub eax, edx
add ecx, ecx
sub eax, ecx
cmp eax, 0xc
jle 0xb0d3e1
mov ecx, 6
sub eax, 7
sub edx, edx
div ecx
mov esi, eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00b0d000
dec esi
jne 0xb0d49c
jmp 0xb0d3e1
cmp dword [esp + 0x18], 0
jne 0xb0d4f1
mov edi, 0xb14140
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, ebx
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x18], 0
je 0xb0d5b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push ebx
imul eax, dword [esp + 0x3c]
push eax
push 0
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x20]
jle 0xb0d372
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov dword [esp + 0x2c], eax
test eax, eax
jl 0xb0d54b
cmp dword [0xb16bd4], 0
je 0xb0d372
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x18], 0
je 0xb0d5cd
cmp dword [esp + 0x2c], 0
jl 0xb0d592
cmp dword [0xb16bd4], 0
jne 0xb0d592
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [0xb16bfc]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0xb0d372
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret