Function at 0x42f180
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5cee68
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x3b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x3cc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3dc]
lea ecx, [esp + 0x94]
mov dword [esp + 0x5c], edi
call fcn.00580534
xor esi, esi
xor ebp, ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3d4], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
call fcn.0058ec3f
lea ecx, [esp + 0x60]
mov byte [esp + 0x3d4], 1
call fcn.00580534
mov ecx, dword [0x615468]
mov byte [esp + 0x3d4], 2
call fcn.0040d390
cmp edi, esi
mov ecx, dword [0x615380]
mov ebx, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [0x61cfec], esi
mov dword [esp + 0x3c], esi
je 0x42f280
mov eax, dword [edi + 0x58]
cmp eax, dword [0x615468]
je 0x42f280
mov dword [esp + 0x3c], 1
cmp edi, esi
mov ebp, ecx
je 0x42f253
mov ebx, edi
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x14], edx
test edi, edi
je 0x42f64b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.00596164
jmp 0x42f662
cmp dword [ecx + 0x12c], esi
je 0x42f24b
xor eax, eax
cmp dword [ecx + 0x1c], esi
mov dword [esp + 0x40], eax
jle 0x42f5f4
jmp 0x42f2a0
test eax, eax
mov edi, dword [esp + 0x2c]
jl 0x42f673
cmp eax, dword [ecx + 0x1c]
jge 0x42f673
mov edx, dword [ecx + 0x18]
mov esi, dword [edx + eax*4]
cmp dword [esi + 8], 0x4d415246
lea eax, [edx + eax*4]
jne case.default.0x42f2dd
mov eax, dword [ecx + 0x12c]
add eax, 0xffffffff
cmp eax, 8
ja case.default.0x42f2dd
jmp dword [eax*4 + 0x4301dc]
cmp dword [esi + 0x140], 1
jne 0x42f2f6
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
xor edi, edi
cmp dword [ebx + 0xf4], edi
jle 0x42f33b
lea ebp, [ebx + 0xec]
push edi
mov ecx, ebp
call fcn.00401700
mov eax, dword [eax]
mov ecx, dword [eax]
cmp dword [ecx + 0x90], esi
je 0x42f327
add edi, 1
cmp edi, dword [ebx + 0xf4]
jl 0x42f306
jmp 0x42f33b
mov edx, ecx
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
cmp dword [esi + 0x140], 2
jne case.default.0x42f2dd
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x2c], ecx
jmp case.default.0x42f2dd
cmp dword [esi + 0x140], 2
jne 0x42f366
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
mov edx, dword [ebx + 0xf4]
xor eax, eax
test edx, edx
jle 0x42f3b4
test eax, eax
jl 0x42f673
cmp eax, edx
jge 0x42f673
mov ecx, dword [ebx + 0xf0]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
mov edi, dword [ecx]
cmp dword [edi + 0x90], esi
je 0x42f3a0
add eax, 1
cmp eax, edx
jl 0x42f372
jmp 0x42f3b4
mov edx, edi
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
cmp dword [esi + 0x140], 1
jne case.default.0x42f2dd
mov esi, dword [esi + 0x58]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
jmp case.default.0x42f2dd
cmp dword [esi + 0x140], 8
jne 0x42f3e3
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
mov edx, dword [ebx + 0xf4]
xor eax, eax
test edx, edx
jle 0x42f432
nop
test eax, eax
jl 0x42f673
cmp eax, edx
jge 0x42f673
mov ecx, dword [ebx + 0xf0]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
mov edi, dword [ecx]
cmp dword [edi + 0x90], esi
je 0x42f41e
add eax, 1
cmp eax, edx
jl 0x42f3f0
jmp 0x42f432
mov edx, edi
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
cmp dword [esi + 0x140], 4
jne case.default.0x42f2dd
mov esi, dword [esi + 0x5c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
jmp case.default.0x42f2dd
cmp dword [esi + 0x140], 4
jne 0x42f461
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
xor edi, edi
cmp dword [ebx + 0xf4], edi
jle 0x42f4a6
lea ebp, [ebx + 0xec]
push edi
mov ecx, ebp
call fcn.00401700
mov eax, dword [eax]
mov ecx, dword [eax]
cmp dword [ecx + 0x90], esi
je 0x42f492
add edi, 1
cmp edi, dword [ebx + 0xf4]
jl 0x42f471
jmp 0x42f4a6
mov edx, ecx
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
cmp dword [esi + 0x140], 8
jne case.default.0x42f2dd
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x38], ecx
jmp case.default.0x42f2dd
cmp dword [esi + 0x140], 0xa
jne 0x42f4d1
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
mov edx, dword [ebx + 0xf4]
xor eax, eax
test edx, edx
jle 0x42f51f
test eax, eax
jl 0x42f673
cmp eax, edx
jge 0x42f673
mov ecx, dword [ebx + 0xf0]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
mov ebp, dword [ecx]
cmp dword [ebp + 0x90], esi
je 0x42f50b
add eax, 1
cmp eax, edx
jl 0x42f4dd
jmp 0x42f51f
mov edx, ebp
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
mov ecx, dword [esi + 0x140]
test cl, 1
je 0x42f5b8
mov eax, dword [esi + 0x58]
cmp edi, eax
jge 0x42f53b
mov edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
jmp 0x42f5b8
cmp dword [esi + 0x140], 0xa
jne 0x42f553
mov dword [esp + 0x14], esi
jmp case.default.0x42f2dd
xor edi, edi
cmp dword [ebx + 0xf4], edi
jle 0x42f598
lea ebp, [ebx + 0xec]
push edi
mov ecx, ebp
call fcn.00401700
mov eax, dword [eax]
mov ecx, dword [eax]
cmp dword [ecx + 0x90], esi
je 0x42f584
add edi, 1
cmp edi, dword [ebx + 0xf4]
jl 0x42f563
jmp 0x42f598
mov edx, ecx
mov eax, dword [edx + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.00596164
mov ecx, dword [esi + 0x140]
test cl, 1
je 0x42f5b8
mov eax, dword [esi + 0x58]
mov edx, dword [esp + 0x2c]
cmp edx, eax
jge 0x42f5b4
mov edx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
test cl, 4
je case.default.0x42f2dd
mov esi, dword [esi + 0x5c]
mov eax, dword [esp + 0x38]
cmp eax, esi
jge 0x42f5ce
mov eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [0x615380]
add eax, 1
cmp eax, dword [ecx + 0x1c]
mov dword [esp + 0x40], eax
jl 0x42f2a0
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x14]
mov esi, dword [ebx + 0xf4]
xor ecx, ecx
test esi, esi
jle 0x42f25a
test ecx, ecx
jl 0x42f673
cmp ecx, esi
jge 0x42f673
mov edx, dword [ebx + 0xf0]
lea eax, [edx + ecx*4]
mov edx, dword [eax]
mov eax, dword [edx]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x42f631
cmp eax, ebp
je 0x42f62d
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x42f620
jmp 0x42f631
test eax, eax
jne 0x42f63d
add ecx, 1
cmp ecx, esi
jl 0x42f604
jmp 0x42f25a
mov edx, dword [edx]
mov ecx, dword [edx + 0x74]
mov dword [esp + 0x14], ecx
jmp 0x42f25a
push 1
push 0
lea edx, [esp + 0x9c]
push edx
push ebp
mov ecx, 0x61537c
call fcn.0043be50
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x42f750
jg 0x42f678
jmp fcn.0057e0f5
cmp dword [esp + 0x3c], 0
mov edi, dword [esp + 0x98]
mov eax, dword [edi]
mov dword [esp + 0x18], 0
jne 0x42f71c
mov eax, dword [eax + 8]
cmp eax, 0x55535341
je 0x42f6a9
cmp eax, 0x4d415246
jne 0x42f71c
mov ebp, 1
xor esi, esi
jmp 0x42f6b9
mov edi, dword [esp + 0x98]
test esi, esi
jl 0x42f673
cmp esi, ebx
jge 0x42f673
mov edi, dword [edi + esi*4]
mov eax, dword [edi + 8]
cmp eax, 0x55535341
je 0x42f6d5
cmp eax, 0x4d415246
jne 0x42f6f6
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, edi
je 0x42f6f6
push 1
push esi
lea ecx, [esp + 0x9c]
call fcn.0058e891
sub esi, 1
jmp 0x42f6ff
mov dword [edi + 0x148], ebp
add ebp, 1
mov ebx, dword [esp + 0x9c]
add esi, 1
cmp esi, ebx
jl 0x42f6b2
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x42f750
mov edi, dword [esp + 0x98]
xor eax, eax
test ebx, ebx
jle 0x42f750
mov edx, dword [esp + 0x18]
test eax, eax
jl 0x42f673
cmp eax, ebx
jge 0x42f673
mov ecx, dword [edi + eax*4]
mov ecx, dword [ecx + 0x148]
cmp ecx, edx
jle 0x42f745
mov edx, ecx
add eax, 1
cmp eax, ebx
jl 0x42f726
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp dword [eax + 0x148], ebx
jne 0x42f76b
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
mov ecx, dword [0x615428]
jne 0x42f79b
cmp ecx, 1
jne 0x42f799
cmp dword [0x61542c], ebx
je 0x42f799
mov ecx, dword [0x6152f8]
mov eax, dword [ecx + 0xd8]
mov ecx, 0x4000c
jmp 0x42f7ac
xor eax, eax
cmp ecx, 1
jne 0x42f7a7
mov ecx, 0x4000c
jmp 0x42f7ac
mov ecx, 0x40006
push eax
push ecx
push ebx
lea ecx, [esp + 0x184]
call fcn.00595de0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1ec]
mov esi, 1
or ebp, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x3d4], 3
mov word [edx + 0x1c], si
mov ecx, eax
jne 0x42f7e2
mov ecx, ebp
cmp eax, ebx
mov edx, dword [esp + 0x1ec]
mov word [edx + 0x1e], cx
mov ecx, dword [esp + 0x14]
mov dx, word [ecx + 0x148]
mov ecx, dword [esp + 0x1ec]
mov word [ecx + 0x18], dx
mov edx, dword [esp + 0x1ec]
mov word [edx + 0x1a], 0xffff
jg 0x42f82e
push ebx
push ebx
push 0x7dac
call fcn.00443770
add esp, 4
push eax
call fcn.00590222
jmp 0x430168
lea ecx, [esp + 0x178]
call fcn.00595fe5
cmp eax, esi
jne 0x430168
mov eax, dword [esp + 0x1ec]
mov ecx, dword [eax + 0x14]
test cl, 3
mov dword [esp + 0xac], ebx
jne 0x42f862
movzx ecx, word [eax + 0x1c]
movzx edx, word [eax + 0x1e]
jmp 0x42f880
test cl, 1
je 0x42f878
movzx ecx, word [eax + 0x1c]
movzx edx, word [eax + 0x1e]
mov dword [esp + 0xac], esi
jmp 0x42f880
movzx ecx, word [eax + 0x18]
movzx edx, word [eax + 0x1a]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x178]
mov dword [esp + 0x84], edx
mov dword [0x61cfec], esi
call fcn.00595dc7
mov edx, dword [esp + 0x1ec]
xor ecx, ecx
cmp word [eax + 0x4c], si
mov eax, dword [edx + 0x10]
sete cl
push eax
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0x20]
call fcn.0058f2a9
push 8
call fcn.0057def7
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x3c], edi
je 0x430168
push 0x5c
lea eax, [esp + 0x238]
push ebx
push eax
mov dword [edi + 4], ebx
mov dword [edi], vtable.CFont.0
call fcn.005abb20
add esp, 0xc
mov dword [esp + 0x234], 0xfffffff8
xor eax, eax
jmp 0x42f910
movzx ecx, word [eax + 0x5dd01c]
mov word [esp + eax + 0x250], cx
add eax, 2
cmp cx, bx
jne 0x42f910
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, edi
call fcn.0058f570
test eax, eax
je 0x43015e
mov ecx, dword [0x615380]
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xc4], 0x14
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc4]
push eax
push ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
call dword [sym.imp.GDI32.dll_StartDocW]
cmp eax, ebp
je 0x43015e
call fcn.0057f6be
mov ecx, dword [eax + 4]
call fcn.00587d59
push 0x138
lea edx, [esp + 0x294]
push ebx
push edx
mov byte [esp + 0x3e0], 4
call fcn.005abb20
mov ecx, dword [0x615468]
add esp, 0xc
call fcn.0040d440
mov ecx, dword [0x615468]
push 0x64
mov dword [esp + 0xc4], eax
call fcn.0040d430
push 7
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x58], ebx
call fcn.0058ea76
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
call esi
mov ecx, dword [esp + 0x24]
push 0xa
push ecx
mov dword [esp + 0x88], eax
call esi
mov dword [esp + 0x74], eax
call fcn.0057e772
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42fa41
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xb4], eax
xor eax, eax
mov byte [esp + 0x3d4], 5
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x9c]
jge 0x4300dc
cmp dword [esp + 0x48], 1
jne 0x42fa7a
mov dword [esp + 0x48], ebx
cmp eax, ebx
jl 0x42f673
mov ecx, dword [esp + 0x98]
mov esi, dword [ecx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
mov dword [esp + 0x44], esi
call eax
cmp eax, esi
jne 0x4300c5
cmp dword [esp + 0xac], 0
jne 0x4300c5
mov ecx, esi
mov eax, dword [ecx + 0x148]
cmp eax, dword [esp + 0x78]
jl 0x4300c5
cmp eax, dword [esp + 0x84]
jg 0x4300c5
mov dword [esp + 0x18], 0x280
mov dword [esp + 0x50], 0x33e
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x42fa37
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x3d4], 6
call fcn.00580534
mov eax, dword [0x615380]
xor esi, esi
cmp dword [eax + 0x12c], esi
mov byte [esp + 0x3d4], 7
mov dword [esp + 0x14], esi
je 0x42fb4a
cmp dword [eax + 0x130], esi
je 0x42fb4a
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x94]
push edx
call fcn.0042d050
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
push 0x33e
lea ebx, [ecx + esi]
add ebx, dword [esp + 0x3c]
push 0x280
lea edx, [esp + 0x118]
lea ebp, [eax + esi]
add ebp, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
call fcn.0058eeec
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x28]
call fcn.0058ee29
cmp dword [esp + 0x54], 0
jne 0x42fbd2
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_StartPage]
mov dword [esp + 0x54], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x38]
push 0
push 0
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x28]
call eax
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0058f669
lea edx, [esp + 0x13c]
mov esi, eax
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x14c]
add edx, ecx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], edx
call fcn.0058f669
cmp ebp, 0x280
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
jg 0x42fc7c
cmp ebx, 0x33e
jg 0x42fc7c
mov eax, dword [0x615380]
cmp dword [eax + 0x12c], 0
jne 0x42fd3d
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
sub esi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub edi, eax
add esi, 0x140
add edi, 0x19f
jmp 0x42fd3d
mov eax, 0xfa00
cdq
idiv ebp
mov ecx, eax
mov eax, 0x14438
cdq
idiv ebx
mov esi, eax
cmp esi, ecx
mov eax, 0x14438
cdq
jge 0x42fcaa
idiv esi
mov dword [esp + 0x50], eax
mov eax, 0xfa00
cdq
idiv esi
jmp 0x42fcb8
idiv ecx
mov dword [esp + 0x50], eax
mov eax, 0xfa00
cdq
idiv ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
cdq
sar esi, 1
sub eax, edx
sar edi, 1
sub edi, esi
add edi, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x5c]
sar esi, 1
push ecx
lea edx, [esp + 0xf0]
sub esi, eax
add esi, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
call fcn.0058eeec
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x28]
call fcn.0058ee29
test esi, esi
jle 0x42fd35
add esi, dword [esp + 0x14]
test edi, edi
jle 0x42fd3d
add edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
push 0
lea eax, [esp + 0x294]
push eax
mov eax, dword [esp + 0x4c]
push edi
push esi
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0042e170
mov eax, dword [esp + 0x8c]
add esp, 0x24
test eax, eax
mov dword [esp + 0x4c], 0
jle 0x42fec4
mov ecx, dword [esp + 0x4c]
xor esi, esi
xor edi, edi
cmp ecx, esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xb0], esi
jl 0x42f673
cmp ecx, eax
jge 0x42f673
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0x60], ecx
call fcn.0042d050
mov eax, dword [esp + 0x58]
test eax, eax
je 0x42fead
mov ecx, 0x4d415246
mov edi, edi
cmp dword [eax + 8], ecx
je 0x42fdf1
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x42fde0
jmp 0x42fead
mov ecx, dword [0x615380]
mov ecx, dword [ecx + 0x12c]
add ecx, 0xffffffff
cmp ecx, 8
ja case.default.0x42fe05
jmp dword [ecx*4 + 0x430200]
mov esi, dword [esp + 0x90]
xor edi, edi
jmp case.default.0x42fe05
xor esi, esi
xor edi, edi
jmp case.default.0x42fe05
mov edi, dword [esp + 0x8c]
xor esi, esi
jmp case.default.0x42fe05
mov eax, dword [eax + 0x140]
test al, 1
je 0x42fe36
xor esi, esi
jmp 0x42fe3e
test al, 2
je 0x42fe3e
mov esi, dword [esp + 0x34]
test al, 4
je 0x42fe46
xor edi, edi
jmp case.default.0x42fe05
test al, 8
je case.default.0x42fe05
mov edi, dword [esp + 0x30]
mov eax, ebp
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, ecx
add esi, eax
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x50]
cdq
sub eax, edx
push 0
sar ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [esp + 0xac]
add edi, eax
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x294]
push edx
mov edx, dword [esp + 0x60]
push edi
push esi
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042e170
add esp, 0x24
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x68]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jl 0x42fd87
cmp dword [esp + 0x14], 0
jle 0x42fefc
mov eax, dword [0x615380]
mov edx, dword [eax + 0x138]
mov eax, dword [eax + 0x13c]
mov ecx, dword [esp + 0x14]
sub ebx, dword [esp + 0xbc]
push edx
push eax
push ecx
sub ebx, 1
push ebx
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.0042e0c0
add esp, 0x18
push 7
lea ecx, [esp + 0x20]
call fcn.0058ea76
mov edi, dword [esp + 0xb8]
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xffffff42
add esi, 0x33e
neg edi
sbb edi, edi
and edi, 0xbe
add edi, 0x280
push edi
push esi
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x28]
call fcn.0058eeec
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x80]
push ecx
push edx
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x28]
call fcn.0058ee29
push 0
push 0
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x28]
call fcn.0058edaf
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
call fcn.0058f669
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea eax, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x14c]
add eax, edx
sub edi, eax
lea ebp, [edi - 1]
push ebp
push 0xa
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x28]
call fcn.0058efb2
push ebp
lea edx, [esi - 0xa]
push edx
lea ecx, [esp + 0x24]
call fcn.0058eb38
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [edx + 0x5c]
push edi
push 0xa
lea ecx, [esp + 0x2c]
call eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x148]
test eax, eax
je 0x430059
push eax
push 0x7e8d
call fcn.00443770
add esp, 4
push eax
lea edx, [esp + 0x90]
push edx
call fcn.00403ad0
mov edi, dword [esp + 0x94]
mov eax, dword [edi - 0xc]
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0xd8]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [edi - 0xc]
sub esi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x24]
push edi
add ebp, 1
push ebp
sub esi, 0xa
push esi
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
jmp 0x430060
mov edi, dword [esp + 0x88]
push ebx
lea ecx, [esp + 0x20]
call fcn.0058f669
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, 1
mov dword [esp + 0x48], eax
jl 0x43008d
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x58], 0
call dword [sym.imp.GDI32.dll_EndPage]
lea ecx, [esp + 0x128]
mov byte [esp + 0x3d4], 6
call fcn.0058054b
lea eax, [edi - 0x10]
mov byte [esp + 0x3d4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4300c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x40], 1
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
or ebp, 0xffffffff
jmp 0x42fa62
cmp dword [esp + 0x54], ebx
je 0x4300ed
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_EndPage]
mov edx, dword [esp + 0xc0]
mov ecx, dword [0x615468]
push edx
call fcn.0040d430
mov eax, dword [esp + 0x378]
cmp eax, ebx
je 0x430113
push 1
push eax
call sym.LectoraViewer.exe__CloseTer_8
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
mov byte [esp + 0x3d4], 4
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x7f]
mov byte [esp + 0x3d4], 3
call fcn.004197c0
mov esi, 1
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
lea ecx, [esp + 0x178]
mov byte [esp + 0x3d4], 2
call fcn.00580656
lea ecx, [esp + 0x60]
mov byte [esp + 0x3d4], 1
call fcn.0058054b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d4], 0
call fcn.0058f323
lea ecx, [esp + 0x94]
mov dword [esp + 0x3d4], ebp
call fcn.0058054b
mov ecx, dword [esp + 0x3cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.005aac48
add esp, 0x3c4
ret