Function at 0x4023e0
Capabilities:
Check for foreground window switch
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421719
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x790
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, ebx
mov dword [ebp - 0xec], eax
call fcn.00406a60
test eax, eax
je 0x402be1
mov eax, dword [ebx + 0x400]
xor esi, esi
cmp eax, esi
je 0x4042de
lea ecx, [ebp - 0x80]
call fcn.0041df63
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], esi
call fcn.00420d5f
lea edx, [ebx + 0x54]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
mov byte [ebp - 0x490], 0
mov byte [ebp - 0x594], 0
lea eax, [ecx + ebx + 0x54]
mov edi, eax
cmp eax, edx
mov dword [ebp - 0x30], edi
jb 0x4024aa
cmp byte [edi], 0x5c
je 0x402487
dec edi
cmp edi, edx
jae 0x402478
mov dword [ebp - 0x30], edi
jmp 0x4024aa
sub eax, edi
lea ecx, [ebp - 0x594]
push eax
lea eax, [edi + 1]
push eax
push ecx
mov dword [ebp - 0x30], edi
call fcn.0040d565
mov al, byte [ebp - 0x594]
add esp, 0xc
test al, al
jne 0x4024d5
lea edi, [ebx + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x594]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x30]
xor esi, esi
lea eax, [ebx + 0x54]
cmp edi, eax
jbe 0x4024fa
sub edi, ebx
lea edx, [ebp - 0x490]
lea ecx, [edi - 0x54]
push ecx
push eax
push edx
call fcn.0040d565
add esp, 0xc
mov byte [ebp + edi - 0x4e4], 0
mov al, byte [ebp - 0x490]
test al, al
jne 0x402516
lea eax, [ebp - 0x490]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x170]
call fcn.0040b4a0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x170]
call fcn.0040b5c0
lea edx, [ebp - 0x594]
lea ecx, [ebp - 0x170]
push edx
call fcn.0040b960
lea eax, [ebp - 0x154]
mov dword [ebp - 0xe4], eax
mov al, byte [0x42da20]
test al, 1
jne 0x402591
mov cl, byte [ebp - 0x29]
mov dl, al
or dl, 1
push 0x404700
mov byte [0x42da20], dl
mov byte [0x42da10], cl
mov dword [0x42da14], esi
mov dword [0x42da18], esi
mov dword [0x42da1c], esi
call fcn.0040d32c
add esp, 4
mov edx, dword [0x42a49c]
mov dword [ebp - 0x144], edx
mov esi, dword [ebp - 0x150]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x3c], esi
cmp esi, dword [eax + 8]
je 0x4042a2
mov ecx, ebx
call fcn.00406a60
test eax, eax
jne 0x4025d3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
jmp 0x402baf
mov edi, dword [0x42da14]
mov eax, dword [0x42da18]
cmp edi, eax
je 0x40267c
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
call fcn.0040d931
add esp, 8
test eax, eax
je 0x402606
mov eax, dword [0x42da18]
add edi, 0x28
cmp edi, eax
jne 0x4025e6
jmp 0x40267c
mov ecx, dword [esi + 0x18]
mov eax, dword [edi + 0x18]
cmp ecx, eax
jne 0x40261e
mov edx, dword [esi + 0x1c]
mov eax, dword [edi + 0x1c]
cmp edx, eax
je 0x404476
mov eax, dword [0x42da18]
add edi, 0x28
cmp edi, eax
mov dword [ebp - 0x44], eax
je 0x402654
lea eax, [edi - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push edi
call fcn.00409540
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
add edi, 0x28
add ecx, 0x28
cmp edi, eax
mov dword [ebp - 0x30], ecx
jne 0x402633
mov eax, dword [0x42da18]
lea edi, [eax - 0x28]
mov dword [ebp - 0x44], eax
cmp edi, eax
je 0x402674
mov ecx, edi
call fcn.00418a41
mov eax, dword [ebp - 0x44]
add edi, 0x28
cmp edi, eax
jne 0x40265e
mov eax, dword [0x42da18]
sub eax, 0x28
mov dword [0x42da18], eax
mov eax, dword [esi]
mov ecx, ebx
push eax
call fcn.00405b60
test eax, eax
je 0x404476
mov edx, dword [ebx + 0x530]
lea edi, [ebx + 0x530]
mov ecx, edi
call dword [edx + 0x4c]
mov eax, dword [ebx + 0x37c]
test eax, eax
je 0x40274d
lea eax, [eax + eax*4]
xor esi, esi
shl eax, 1
test eax, eax
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0x20], esi
jle 0x40273c
push 0x60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov ecx, ebx
push eax
call fcn.00405b60
test eax, eax
mov dword [ebp - 0xa4], eax
je 0x404476
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
cmp dword [ebp - 0x10c], esi
jne 0x40270c
mov ecx, dword [ebp - 0xd4]
xor eax, eax
cmp eax, ecx
je 0x402718
or esi, dword [ebp - 0xd4]
jne 0x4027c2
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xd4], eax
mov eax, dword [ebx + 0x37c]
mov esi, dword [ebp - 0x10c]
inc ecx
lea edx, [eax + eax*4]
mov dword [ebp - 0x20], ecx
shl edx, 1
cmp ecx, edx
jl 0x4026c1
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x404476
mov esi, dword [ebp - 0x3c]
push esi
lea ecx, [ebp - 0x144]
call fcn.00418b2e
mov eax, dword [esi + 0x18]
push 3
mov dword [ebp - 0x12c], eax
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x128], ecx
mov ecx, ebx
call fcn.00407b50
lea ecx, [ebx + 0x40c]
test ecx, ecx
je 0x40278a
mov eax, dword [ecx + 4]
test eax, eax
je 0x40278a
call fcn.0041e5b1
lea ecx, [ebp - 0x80]
call fcn.0041e082
push 0xa4
mov dword [ebp - 0x38], 0
call fcn.00418782
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 4
je 0x4027d7
push 0
push 8
push 1
mov ecx, eax
call fcn.0041763b
mov edi, eax
jmp 0x4027d9
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], 0
add esi, 0x28
jmp 0x4025a7
xor edi, edi
mov edx, dword [edi + 0x5c]
mov esi, 1
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
mov word [edx + 0x20], si
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x402978
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40283e
push 0x94
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [edi + 0x5c]
mov dword [ecx + 8], eax
mov edx, dword [edi + 0x5c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40283e
mov word [eax + 0x24], 0x94
mov word [eax + 0x2c], 2
mov dword [eax + 0x28], esi
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xb8]
cmp eax, 2
jne 0x402882
mov edx, dword [0x42da18]
lea ecx, [ebp - 0x144]
push ecx
push esi
push edx
mov ecx, 0x42da10
call fcn.00409140
test edi, edi
je 0x404476
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
add esi, 0x28
jmp 0x4025a7
mov ecx, edi
call fcn.004177db
lea ecx, [ebp - 0xb0]
mov esi, eax
push ecx
mov ecx, edi
call fcn.00417869
mov edx, dword [eax]
lea eax, [ebp - 0xac]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x44], edx
call fcn.0041782b
mov ecx, dword [eax]
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x18], ecx
push edx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004177ee
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
push esi
push ecx
push edx
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041e01a
test eax, eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 6
sete byte [ebp - 0x29]
call fcn.00418a41
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.00418a41
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.00418a41
mov al, byte [ebp - 0x29]
test al, al
je 0x402937
push str.Printer_error_
mov ecx, ebx
call fcn.00406a40
mov esi, dword [ebp - 0x3c]
add esi, 0x28
jmp 0x4025a7
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xb8]
push eax
call fcn.0041782b
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x698]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xb8]
jmp 0x402c30
mov al, byte [ebx + 0x158]
lea esi, [ebx + 0x158]
test al, al
je 0x402a76
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4029f9
lea ecx, [ebp - 0x8c]
push 0
push ecx
push esi
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x4029f9
mov edx, dword [ebp - 0x8c]
push 0
push 0
push 0
push esi
push edx
push 0
call sub.WINSPOOL.DRV_DocumentPropertiesA
push eax
call fcn.0040d7f7
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], edi
push 2
push 0
push edi
push esi
push eax
push 0
call sub.WINSPOOL.DRV_DocumentPropertiesA
cmp eax, 1
jne 0x4029eb
mov word [edi + 0x2c], 2
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x4029fc
mov edi, dword [ebp - 0x38]
push edi
push 0
push esi
push 0
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041e01a
test eax, eax
jne 0x402a36
push esi
lea edx, [ebp - 0x38c]
push str.Unable_to_find_printer__s
push edx
call fcn.0040d7a5
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
jmp 0x402b8a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x698]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x38]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x402c35
mov ecx, eax
push ecx
call fcn.0040d6bc
add esp, 4
jmp 0x402c35
mov ecx, edi
call fcn.004178a7
test eax, eax
jne 0x402adc
push str.You_have_no_default_printer_
mov ecx, ebx
call fcn.00406a40
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00418a41
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 1
call fcn.0040b500
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.00420db6
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.0041e098
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004177db
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x402af3
mov word [eax + 0x2c], 2
lea edx, [ebp - 0xbc]
mov ecx, edi
push edx
call fcn.00417869
mov esi, dword [eax]
lea eax, [ebp - 0xe0]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.0041782b
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
mov dword [ebp - 0x44], ecx
push edx
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.004177ee
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax]
push ecx
push esi
push edx
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041e01a
test eax, eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 9
sete byte [ebp - 0x29]
call fcn.00418a41
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.00418a41
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.00418a41
mov al, byte [ebp - 0x29]
test al, al
je 0x402bf4
push str.Default_printer_error_
mov ecx, ebx
call fcn.00406a40
push 1
mov ecx, ebx
call fcn.00407b50
mov eax, dword [ebx + 0x3c]
mov byte [ebp - 4], 2
test eax, eax
lea ecx, [ebp - 0x144]
jne 0x4042ac
call fcn.00418a41
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 1
call fcn.0040b500
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.00420db6
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.0041e098
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xe8]
push eax
call fcn.0041782b
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x698]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xe8]
call fcn.00418a41
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x402c43
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x402c59
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x402c59
lea edi, [ebp - 0x80]
mov dword [ebp - 0x44], edi
jmp 0x402ca3
push 0
call dword [sym.imp.GDI32.dll_CreateMetaFileA]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0041e01a
test eax, eax
jne 0x402c7d
push str.CreateMetaFile_failed
mov ecx, ebx
call fcn.00406a40
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x9c]
push eax
call fcn.00420d91
mov eax, dword [ebx + 0x44]
lea edi, [ebp - 0x9c]
neg eax
sbb al, al
mov dword [ebp - 0x44], edi
and al, 0xc4
add al, 0x5f
mov byte [ebp - 0x5c], al
xor ecx, ecx
mov edx, dword [ebx + 0x390]
mov dword [ebp - 0x104], ecx
mov eax, dword [edi]
mov dword [ebp - 0x100], ecx
push 4
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x104], 0x14
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xf4], ecx
mov ecx, edi
call dword [eax + 0x34]
push 0
mov ecx, edi
call fcn.0041e49e
push 1
mov ecx, edi
call fcn.0041e223
mov ecx, dword [edi + 8]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push ecx
call esi
mov edx, dword [edi + 8]
push 0x58
push edx
mov dword [ebp - 0x18], eax
call esi
fild dword [ebx + 0x4c]
fild dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 8]
push 8
push eax
fmul dword [0x423650]
fidiv dword [ebp - 0x20]
fsubp st(1)
fstp dword [ebp - 0x40]
call esi
mov ecx, dword [edi + 8]
push 0x58
push ecx
mov dword [ebp - 0x18], eax
call esi
fild dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
fmul dword [0x423650]
fidiv dword [ebp - 0x20]
fld dword [ebp - 0x40]
fcomp qword [0x423648]
fnstsw ax
test ah, 1
jne 0x402d62
fld dword [ebp - 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x402d69
mov dword [ebp - 0x40], 0
mov eax, dword [ebx + 0x394]
test eax, eax
jne 0x402dd8
fsub dword [ebp - 0x40]
fsub qword [0x423640]
call fcn.0040d650
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x408], eax
fild dword [ebp - 0x18]
fcom qword [0x423638]
fnstsw ax
test ah, 0x41
jne 0x402da8
fstp st(0)
mov dword [ebx + 0x408], 0x320
jmp 0x402e05
fcom qword [0x423630]
fnstsw ax
test ah, 1
je 0x402e03
fld qword [0x423630]
fsub st(1)
fmul qword [0x423628]
fsubr qword [0x423638]
call fcn.0040d650
fstp st(0)
mov dword [ebx + 0x408], eax
jmp 0x402e05
fstp st(0)
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], 0
fild qword [ebp - 0x114]
fmul qword [0x423620]
call fcn.0040d650
mov dword [ebx + 0x408], eax
jmp 0x402e05
fstp st(0)
mov edx, dword [edi + 8]
push 0x71
push edx
call esi
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
push 0x5a
push eax
call esi
fild dword [ebx + 0x50]
fild dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 8]
push 0xa
push ecx
fmul dword [0x423650]
fidiv dword [ebp - 0x20]
fsubp st(1)
fstp dword [ebp - 0x58]
call esi
mov edx, dword [edi + 8]
push 0x5a
push edx
mov dword [ebp - 0x18], eax
call esi
mov ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fld dword [ebp - 0x58]
fcomp qword [0x423648]
fnstsw ax
test ah, 1
jne 0x402e75
fld dword [ebp - 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x402e7c
mov dword [ebp - 0x58], 0
fsub dword [ebp - 0x58]
fsub dword [0x42361c]
fstp dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x30]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x402ea3
fild dword [ebp - 0x18]
fdivr dword [ebp - 0x70]
fstp dword [ebp - 0x34]
jmp 0x402eaa
mov dword [ebp - 0x34], 0x41855555
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x402ee4
mov ecx, dword [edi + 4]
push 0
push 0x405c00
push str.MS_LineDraw
push ecx
mov dword [ebx + 0x368], str.MS_LineDraw
call dword [sym.imp.GDI32.dll_EnumFontFamiliesA]
cmp eax, 0x3a
je 0x402ef0
mov edx, dword [ebx + 0x36c]
mov dword [ebx + 0x368], edx
jmp 0x402ef0
mov eax, dword [ebx + 0x36c]
mov dword [ebx + 0x368], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov ecx, ebx
push eax
call fcn.00405b60
test eax, eax
je 0x404476
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x402f25
mov eax, dword [0x42da18]
lea edx, [ebp - 0x144]
push edx
push 1
push eax
mov ecx, 0x42da10
call fcn.00409140
mov eax, dword [ebx + 0x384]
test eax, eax
je 0x402f42
lea ecx, [ebp - 0x698]
push ecx
mov ecx, ebx
call fcn.00408fb0
jmp 0x4043ad
mov eax, dword [ebx + 0x388]
test eax, eax
je 0x403175
mov edx, dword [ebx + 0x530]
lea ecx, [ebx + 0x530]
lea eax, [ebp - 0x54]
push eax
call dword [edx + 0x18]
push str..RTF
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.00418cf7
mov esi, 1
mov eax, dword [ebp - 0x54]
mov edx, dword [ebx + 0x620]
lea ecx, [ebx + 0x620]
push 0
push 0x1021
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x402ffe
mov edx, dword [ebx + 0x530]
lea ecx, [ebx + 0x530]
lea eax, [ebp - 0xd0]
push eax
call dword [edx + 0x18]
mov ecx, dword [eax]
push esi
push ecx
lea edx, [ebp - 0x54]
push str._s_d.RTF
push edx
mov byte [ebp - 4], 0xc
call fcn.004175d6
add esp, 0x10
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
call fcn.00418a41
inc esi
cmp esi, 0x64
jl 0x402f79
push str.Cannot_create_RTF_output_file
mov ecx, ebx
call fcn.00406a40
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00418a41
mov esi, dword [ebp - 0x3c]
add esi, 0x28
jmp 0x4025a7
push edi
mov ecx, ebx
call fcn.00409590
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x403164
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40314d
lea ecx, [ebp - 0x208]
call fcn.00417bdb
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0xd
call fcn.00417bdb
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xe
call fcn.00417bdb
mov eax, dword [0x42a49c]
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0x11
call fcn.00417bdb
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0x12
call fcn.00417bdb
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0x13
call fcn.00417bdb
mov ecx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x54]
push eax
push ecx
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0x14
call fcn.00417de3
lea edx, [ebp - 0x208]
mov ecx, ebx
push edx
call fcn.00408d80
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0x15
push eax
call fcn.004198f9
jmp 0x4030d0
lea ecx, [ebp - 0x19c]
mov dword [ebp - 4], 0x1d
call fcn.00417c0e
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0x1c
call fcn.00417c0e
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0x1b
call fcn.00417c0e
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0x1a
call fcn.00418a41
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 0x19
call fcn.00418a41
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x18
call fcn.00417c0e
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0x17
call fcn.00417c0e
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0xb
call fcn.00417c0e
jmp 0x403164
mov ecx, dword [ebp - 0x54]
push 1
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00418a41
jmp 0x4043ad
fld dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
xor ecx, ecx
fchs
fst dword [ebp - 0x30]
fstp dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
mov eax, 1
mov dword [ebp - 0x50], ecx
mov ecx, ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x38], eax
call fcn.00408860
mov ecx, ebx
call fcn.00408880
mov eax, dword [ebx + 0x530]
lea esi, [ebx + 0x530]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40412d
mov edx, dword [ebp - 0x14]
mov ecx, 2
and edx, 0xff
lea eax, [edx - 8]
cmp eax, 0x13
ja case.0x4031eb.18
xor edx, edx
mov dl, byte [eax + 0x4044b0]
jmp dword [edx*4 + 0x404484]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov edx, dword [ebp - 0x14]
and edx, 0xff
lea eax, [edx - 0xe]
cmp eax, 0x6a
ja case.0x40321c.55
xor ecx, ecx
mov cl, byte [eax + 0x40456c]
jmp dword [ecx*4 + 0x4044c4]
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x364], 0xa
mov dword [ebx + 0x428], 0
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x364], 0xc
mov dword [ebx + 0x428], 0
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x420], 1
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x420], 0
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x41c], 1
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x41c], 0
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
cmp al, 0x31
je 0x4032e5
cmp al, 1
jne 0x4032ef
mov dword [ebx + 0x418], 1
cmp al, 0x30
je 0x4032f7
test al, al
jne 0x403301
mov dword [ebx + 0x418], 0
push 0
push edi
mov ecx, ebx
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x364], 0xf
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
cmp al, 0x31
je 0x403341
cmp al, 1
jne 0x40334b
mov dword [ebx + 0x428], 1
cmp al, 0x30
je 0x403353
test al, al
jne 0x40335d
mov dword [ebx + 0x428], 0
push 0
push edi
mov ecx, ebx
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
cmp al, 0x31
je 0x403384
cmp al, 1
jne 0x40338e
mov dword [ebx + 0x424], 1
cmp al, 0x30
je 0x403396
test al, al
jne 0x4033a0
mov dword [ebx + 0x424], 0
push 0
push edi
mov ecx, ebx
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
mov dword [ebx + 0x424], 0
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
test al, 1
je 0x4033d9
mov dword [ebx + 0x364], 0xc
jmp 0x4033e3
mov dword [ebx + 0x364], 0xa
test al, 4
je 0x4033f6
mov ecx, 1
xor edx, edx
mov dword [ebx + 0x360], ecx
jmp 0x403403
xor edx, edx
mov ecx, 1
mov dword [ebx + 0x360], edx
test al, 0x18
jne 0x40340f
mov dword [ebx + 0x420], edx
jmp 0x403415
mov dword [ebx + 0x420], ecx
test al, 0x20
je 0x403421
mov dword [ebx + 0x428], ecx
jmp 0x403427
mov dword [ebx + 0x428], edx
test al, 0x40
je 0x403433
mov dword [ebx + 0x41c], ecx
jmp 0x403439
mov dword [ebx + 0x41c], edx
test al, 0x80
je 0x403451
mov dword [ebx + 0x418], ecx
push edx
push edi
mov ecx, ebx
call fcn.00405440
jmp case.0x40321c.55
push edx
push edi
mov ecx, ebx
mov dword [ebx + 0x418], edx
call fcn.00405440
jmp case.0x40321c.55
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x403473
mov dword [ebp - 0x34], 0x41855555
mov edx, dword [edi]
xor esi, esi
push esi
mov ecx, edi
mov dword [ebx + 0x360], esi
mov dword [ebx + 0x418], esi
mov dword [ebx + 0x41c], esi
mov dword [ebx + 0x420], esi
mov dword [ebx + 0x364], 0xa
mov dword [ebx + 0x428], esi
mov dword [ebx + 0x424], esi
mov dword [ebx + 0x604], esi
call dword [edx + 0x30]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov al, byte [ebx + 0x28]
cmp al, 0x63
jae 0x4034c2
mov byte [ebx + 0x28], 0
push esi
push edi
mov ecx, ebx
call fcn.00405440
mov ecx, ebx
call fcn.00408860
mov ecx, ebx
call fcn.00408880
jmp case.0x40321c.55
mov dword [ebp - 0x34], 0x41855555
jmp case.0x40321c.55
mov dword [ebp - 0x34], 0x41480000
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.55
mov ecx, dword [ebx + 0x380]
neg ecx
sbb ecx, ecx
and ecx, 0x24
add ecx, 0xb4
and eax, 0xff
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
fidiv dword [ebp - 0x18]
fdivr dword [0x423650]
fstp dword [ebp - 0x34]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.55
and eax, 0xff
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdivr dword [0x423618]
fdivr dword [0x423650]
fstp dword [ebp - 0x34]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.55
mov ecx, dword [ebx + 0x380]
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x3c
and eax, 0xff
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
fidiv dword [ebp - 0x18]
fdivr dword [0x423650]
fstp dword [ebp - 0x34]
jmp case.0x40321c.55
mov dword [ebp - 0x34], 0x411b8e39
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x360], 1
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x360], 0
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 2
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
fmul dword [ebx + 0x404]
fstp dword [ebp - 0x40]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
fmul dword [ebp - 0x34]
fsubr dword [ebp - 0x70]
fstp dword [ebp - 0x4c]
jmp case.0x40321c.55
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x4c], edx
jmp case.0x40321c.55
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.17
and eax, 0xff
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [ebp - 0x34]
fstp dword [ebp - 0x4c]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
cmp al, 9
mov byte [ebx + 0x28], al
jne case.0x40321c.55
mov byte [ebx + 0x28], 0xa
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
cmp al, 0x31
je 0x4036ec
cmp al, 1
jne 0x4036f6
mov dword [ebx + 0x604], 1
cmp al, 0x30
je 0x4036fe
test al, al
jne 0x403708
mov dword [ebx + 0x604], 2
push 0
push edi
mov ecx, ebx
call fcn.00405440
jmp case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x604], 0
call fcn.00405440
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [ebx + 0x380]
test eax, eax
je 0x40374f
fld qword [0x423610]
jmp 0x403755
fld qword [0x423608]
mov ecx, dword [ebp - 0x14]
fld dword [ebp - 0x1c]
and ecx, 0xff
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
fdiv st(2)
fsubp st(1)
fstp dword [ebp - 0x1c]
fstp st(0)
fld dword [ebp - 0x1c]
fld dword [ebp - 0x4c]
fsubr qword [0x423640]
fcompp
fnstsw ax
test ah, 1
jne case.0x40321c.55
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x5c]
push 0
push 0
mov eax, dword [edx]
push ecx
lea edx, [ebp - 0x50]
push eax
push edx
lea eax, [ebp - 0x80]
push edi
push eax
mov ecx, ebx
call fcn.00408690
test eax, eax
je 0x4037b2
mov dword [ebp - 0x64], 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x1c], ecx
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x20], 0
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
test al, al
je 0x40380d
cmp al, 0x22
je 0x40380d
mov ecx, dword [ebp - 0x20]
mov byte [ebp + ecx - 0x38c], al
inc ecx
cmp ecx, 0x104
mov dword [ebp - 0x20], ecx
jl 0x4037dd
jmp 0x403818
mov ecx, dword [ebp - 0x20]
mov byte [ebp + ecx - 0x38c], 0
xor esi, esi
mov al, byte [ebp + esi - 0x38c]
test al, al
je 0x40384f
cmp al, 0x2c
je 0x403834
inc esi
cmp esi, 0x104
jl 0x40381a
jmp 0x40384f
lea edx, [ebp + esi - 0x38b]
push edx
call fcn.0040d55a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp + esi - 0x38c], 0
push 0x2050
push 0
push 0
lea eax, [ebp - 0x38c]
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
mov dword [ebp - 0x20], eax
je case.0x40321c.55
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0x4235f8
mov ecx, eax
mov byte [ebp - 4], 0x1e
push ecx
lea ecx, [ebp - 0x88]
call fcn.0041e55a
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x188]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [ebp - 0xcc]
call fcn.0041df63
push 0
mov byte [ebp - 4], 0x1f
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0041e01a
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x88]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0xc8]
push eax
push ecx
call fcn.0041e15b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], edx
mov esi, eax
fild qword [ebp - 0x11c]
fild dword [ebp - 0x180]
fmul qword [0x4235f0]
fdiv st(1)
call fcn.0040d650
fild dword [ebp - 0x184]
mov dword [ebp - 0x18], eax
fmul qword [0x4235c8]
fdiv st(1)
call fcn.0040d650
fstp st(0)
fld dword [ebp - 0x24]
mov dword [ebp - 0xf0], eax
call fcn.0040d650
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xcc]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [ebp - 0x184]
fld dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xf0]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
call fcn.0040d650
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
test esi, esi
je 0x40399c
mov esi, dword [esi + 4]
mov ecx, dword [ebp - 0xc8]
push esi
push ecx
call fcn.0041e15b
lea ecx, [ebp - 0x88]
call fcn.0041e587
test eax, eax
je 0x4039c2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0xcc]
call fcn.0041e082
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x1e
call fcn.0041e098
mov dword [ebp - 0x88], vtable.CGdiObject.0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x20
call fcn.0041e5b1
mov byte [ebp - 4], 3
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x24]
push edx
push eax
push edi
push ecx
mov ecx, ebx
call fcn.00407f70
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov edx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x24]
push edx
push eax
push edi
push 0
mov ecx, ebx
call fcn.00407f70
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x24]
push ecx
push edx
push edi
push 1
mov ecx, ebx
call fcn.00407f70
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov eax, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x24]
push eax
push ecx
push edi
push 3
mov ecx, ebx
call fcn.00407f70
jmp case.0x40321c.55
mov ecx, ebx
call fcn.00408860
lea edx, [ebx + 0x540]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edx
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.55
and eax, 0xff
mov ecx, dword [ebp - 0x20]
dec eax
add ecx, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
fild dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x10
mov dword [ebp - 0x18], eax
fmul dword [ebp - 0x34]
fchs
fstp dword [ecx - 4]
mov dword [ebx + 0x580], 1
jl 0x403ab4
jmp case.0x40321c.55
mov ecx, ebx
call fcn.00408880
lea edx, [ebx + 0x584]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edx
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x14]
test al, al
je case.0x40321c.55
and eax, 0xff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
fild dword [ebp - 0x28]
inc eax
add ecx, 4
cmp eax, 0x20
mov dword [ebp - 0x18], eax
fmul dword [ebx + 0x404]
mov dword [ebp - 0x20], ecx
fstp dword [ecx - 4]
jl 0x403b1b
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
test al, al
jne 0x403bbd
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
xor eax, eax
and ecx, 0xff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebx + 0x584]
fild dword [ebp - 0x28]
fild dword [ebp - 0x18]
inc eax
add ecx, 4
cmp eax, 0x20
mov dword [ebp - 0x18], eax
fmul st(1)
fmul dword [ebx + 0x404]
fstp dword [ecx - 4]
jl 0x403b9c
fstp st(0)
jmp case.0x40321c.55
cmp al, 1
jne case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
mov dword [ebx + 0x580], 1
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
xor eax, eax
and ecx, 0xff
mov dword [ebp - 0x18], eax
dec ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebx + 0x540]
fild dword [ebp - 0x28]
fild dword [ebp - 0x18]
inc eax
add ecx, 4
cmp eax, 0x10
mov dword [ebp - 0x18], eax
fmul st(1)
fmul dword [ebp - 0x34]
fchs
fstp dword [ecx - 4]
jl 0x403bf7
fstp st(0)
jmp case.0x40321c.55
mov eax, dword [ebp - 0x38]
test eax, eax
jne case.0x4031eb.18
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov al, byte [ebp - 0x14]
test al, al
jne 0x403c60
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov dword [ebp - 0x28], ecx
fild dword [ebp - 0x28]
fmul dword [ebx + 0x404]
fadd dword [ebp - 0x24]
jmp 0x40410b
cmp al, 1
jne case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
cmp dword [ebx + 0x428], 2
jne 0x403c92
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 0
call fcn.00405440
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov dword [ebp - 0x28], ecx
fild dword [ebp - 0x28]
fmul dword [ebp - 0x34]
fsubr dword [ebp - 0x1c]
fst dword [ebp - 0x1c]
jmp 0x403773
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov dword [ebp - 0x28], ecx
fild dword [ebp - 0x28]
fmul qword [0x4235e8]
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
jmp case.0x40321c.55
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
lea eax, [ecx - 1]
cmp eax, 0x35
ja case.0x403d06.7
xor edx, edx
mov dl, byte [eax + 0x4045f4]
jmp dword [edx*4 + 0x4045d8]
mov edx, dword [edi]
mov eax, 0xff0000
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
mov eax, 0xffff00
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
mov eax, 0xff00ff
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
mov eax, 0xffff
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
mov eax, 0xff
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
mov eax, 0xff00
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
mov edx, dword [edi]
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 0x48], eax
call dword [edx + 0x30]
jmp case.0x40321c.55
fld dword [ebp - 0x24]
fsub dword [ebx + 0x404]
jmp 0x40410b
xor ecx, ecx
lea edx, [ebx + 0x584]
fld dword [ebp - 0x40]
fadd dword [edx]
fcomp dword [ebp - 0x24]
fnstsw ax
test ah, 0x41
je 0x403dd0
inc ecx
add edx, 4
cmp ecx, 0x20
jl 0x403db3
jmp case.0x40321c.55
fld dword [ebp - 0x40]
fadd dword [ebx + ecx*4 + 0x584]
jmp 0x40410b
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 2
call fcn.00405440
jmp case.0x40321c.55
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
jmp case.0x40321c.55
cmp dword [ebx + 0x428], ecx
jne 0x403e1f
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 0
call fcn.00405440
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
cmp al, 0xa
mov dword [ebp - 0x24], ecx
je 0x403e7b
mov eax, dword [ebx + 0x580]
test eax, eax
je 0x403e7b
xor ecx, ecx
lea edx, [ebx + 0x540]
fld dword [edx]
fsub dword [ebp - 0x58]
fcomp dword [ebp - 0x1c]
fnstsw ax
test ah, 1
jne 0x403e58
inc ecx
add edx, 4
cmp ecx, 0x10
jl 0x403e3e
jmp 0x403e65
fld dword [ebx + ecx*4 + 0x540]
fsub dword [ebp - 0x58]
fstp dword [ebp - 0x1c]
cmp ecx, 0x10
jne 0x403770
fld dword [ebp - 0x4c]
fchs
fstp dword [ebp - 0x1c]
jmp 0x403770
fld dword [ebp - 0x1c]
fsub dword [ebp - 0x34]
fstp dword [ebp - 0x1c]
jmp 0x403770
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x5c]
push 0
push 0
mov eax, dword [edx]
push ecx
lea edx, [ebp - 0x50]
push eax
push edx
lea eax, [ebp - 0x80]
push edi
push eax
mov ecx, ebx
call fcn.00408690
test eax, eax
je 0x403eb2
mov dword [ebp - 0x64], 1
cmp dword [ebx + 0x428], 2
jne 0x403ecf
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 0
call fcn.00405440
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x60], 1
jmp case.0x40321c.55
cmp dword [ebx + 0x428], ecx
jne case.0x40321c.55
push 0
push edi
mov ecx, ebx
mov dword [ebx + 0x428], 0
call fcn.00405440
jmp case.0x40321c.55
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x403fa4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x403f4c
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x64], 0
test eax, eax
jne 0x403f4c
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x403f4c
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jl 0x404272
mov edx, dword [edi + 4]
mov dword [ebp - 0x60], 0
push edx
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 0x34]
push 0
mov ecx, edi
call fcn.0041e49e
push 1
mov ecx, edi
call fcn.0041e223
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403f8f
push edi
mov ecx, ebx
call fcn.00405740
test eax, eax
je 0x402a8d
push 0
push edi
mov ecx, ebx
call fcn.00405440
mov eax, dword [ebp - 0x48]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403fce
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov dword [ebp - 0x24], ecx
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], edx
call dword [eax + 0x28]
jmp case.0x40321c.55
mov eax, dword [ebx + 0x424]
mov ecx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x68], ecx
je 0x403fea
fld dword [ebp - 0x1c]
fadd dword [0x4235e4]
fstp dword [ebp - 0x68]
cmp dword [ebx + 0x604], 1
jne 0x404002
fld dword [ebp - 0x34]
fmul dword [0x4235e0]
fsubr dword [ebp - 0x68]
fstp dword [ebp - 0x68]
lea edx, [ebp - 0x14]
mov ecx, ebx
push edx
call fcn.004047f0
test eax, eax
jne 0x40408b
mov eax, dword [ebx + 0x378]
test eax, eax
je 0x40403b
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, ebx
call fcn.004088b0
test eax, eax
jne case.0x40321c.55
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004171bb
fld dword [ebp - 0x24]
mov byte [ebp - 4], 0x21
call fcn.0040d650
fld dword [ebp - 0x68]
mov esi, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0040d650
mov edx, dword [ebp - 0x28]
push eax
push edx
mov ecx, edi
call dword [esi + 0x5c]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00418a41
jmp 0x404102
cmp eax, 3
je 0x404102
cmp eax, 4
je case.0x40321c.55
cmp eax, 1
jne 0x4040a0
mov eax, dword [ebp - 0x14]
push eax
jmp 0x4040a2
push 0
push edi
mov ecx, ebx
call fcn.00405440
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004171bb
fld dword [ebp - 0x24]
mov byte [ebp - 4], 0x22
call fcn.0040d650
fld dword [ebp - 0x68]
mov esi, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0040d650
mov edx, dword [ebp - 0x28]
push eax
push edx
mov ecx, edi
call dword [esi + 0x5c]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00418a41
push 0
push edi
mov ecx, ebx
call fcn.00405440
fld dword [ebp - 0x24]
fadd dword [ebx + 0x404]
fstp dword [ebp - 0x24]
mov eax, dword [ebx + 0x530]
lea esi, [ebx + 0x530]
lea ecx, [ebp - 0x14]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x4031c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
push edx
push 1
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x50]
push eax
push edx
lea eax, [ebp - 0x80]
push edi
push eax
mov ecx, ebx
call fcn.00408690
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40439c
lea ecx, [ebp - 0x288]
call fcn.00417bdb
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x23
call fcn.00417bdb
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x24
call fcn.00417bdb
mov eax, dword [0x42a49c]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x27
call fcn.00417bdb
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x28
call fcn.00417bdb
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x29
call fcn.00417bdb
mov eax, dword [ebp - 0x50]
mov esi, 1
cmp eax, esi
mov byte [ebp - 4], 0x2a
jl 0x404217
movsx eax, byte [ebp - 0x5c]
mov ecx, dword [ebp - 0x3c]
push esi
push eax
lea eax, [ebp - 0x79c]
mov edx, dword [ecx]
push edx
push str._s_c_d.emf
push eax
call fcn.0040d7a5
mov edx, dword [ebp - 0x23c]
add esp, 0x14
lea ecx, [ebp - 0x79c]
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.00417db7
mov eax, dword [ebp - 0x50]
inc esi
cmp esi, eax
jle 0x4041d6
lea eax, [ebp - 0x288]
mov ecx, ebx
push eax
call fcn.00408d80
mov esi, 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], esi
cmp esi, eax
jg 0x40431d
movsx ecx, byte [ebp - 0x5c]
mov edx, dword [ebp - 0x3c]
push esi
push ecx
lea ecx, [ebp - 0x79c]
mov eax, dword [edx]
push eax
push str._s_c_d.emf
push ecx
call fcn.0040d7a5
add esp, 0x14
lea edx, [ebp - 0x79c]
mov byte [ebp - 4], 0x2b
push edx
call fcn.004198f9
mov dword [ebp - 4], 0x2a
inc esi
jmp 0x40422a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
lea eax, [ebp - 0x698]
lea ecx, [ebp - 0x38c]
push eax
push str.Cannot_print_to__s
push ecx
call fcn.0040d7a5
add esp, 0xc
lea edx, [ebp - 0x38c]
mov ecx, ebx
push edx
call fcn.00406a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call fcn.00418a41
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 1
call fcn.0040b500
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.00420db6
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.0041e098
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x33
call fcn.00417c0e
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x32
call fcn.00417c0e
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x31
call fcn.00417c0e
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x30
call fcn.00418a41
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x2f
call fcn.00418a41
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x2e
call fcn.00417c0e
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x2d
call fcn.00417c0e
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 3
call fcn.00417c0e
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x4043ad
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x4043ad
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4043d5
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x34
mov eax, dword [ecx]
push eax
call fcn.004198f9
jmp 0x4043ce
mov dword [ebp - 4], 3
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x404476
push 6
mov ecx, ebx
call fcn.00407b50
mov eax, dword [ebx + 0x18]
test eax, eax
jg 0x4043f7
mov dword [ebx + 0x18], 7
mov ecx, dword [ebx + 0x18]
mov eax, 0x28
cmp ecx, eax
jle 0x404406
mov dword [ebx + 0x18], eax
mov edx, dword [ebx + 0x18]
xor esi, esi
shl edx, 6
test edx, edx
jle 0x404476
mov edi, dword [ebp - 0xec]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp edi, eax
jne 0x404440
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x18]
inc esi
shl eax, 6
cmp esi, eax
jl 0x404418
mov esi, dword [ebp - 0x3c]
add esi, 0x28
jmp 0x4025a7
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40445b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov ecx, ebx
call fcn.00405c10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, ebx
call fcn.00405c10
mov esi, dword [ebp - 0x3c]
add esi, 0x28
jmp 0x4025a7