Function at 0x100234f0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x10045f20
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1005ae50]
xor eax, ebp
mov dword [ebp + 0x304], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x310]
mov ecx, 0x80
mov esi, str.EPP_EDF_PREVIEW.DBG
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp]
push ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0
xor bl, bl
movsb byte es:[edi], byte [esi]
call fcn.10030660
add esp, 4
test al, al
je 0x10023561
mov byte [ebp - 0x11], 1
mov ecx, 0x80
mov esi, str.EPP_EDF_PRINT.DBG
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp]
push edx
movsb byte es:[edi], byte [esi]
call fcn.10030660
add esp, 4
test al, al
je 0x10023585
mov bl, 1
cmp dword [ebp + 0x314], 1
jne 0x10023594
cmp byte [ebp - 0x11], 0
jmp 0x10023596
test bl, bl
je 0x100237ec
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.10018550
mov ecx, ebx
call fcn.10018740
mov ecx, dword [ebp - 0x24]
lea eax, [eax + eax*2]
cdq
mov edi, 4
and edx, 7
push edi
add eax, edx
sar eax, 3
mov esi, ecx
push edi
imul esi, eax
push ecx
call fcn.10020720
mov ecx, dword [ebp - 0x28]
imul ecx, eax
push ecx
mov dword [ebp - 0x30], eax
call fcn.100316a9
add esp, 0x10
push esi
mov dword [ebp - 0x20], eax
call fcn.100316a9
add esp, 4
push esi
mov dword [ebp - 0x1c], eax
call fcn.100316a9
add esp, 4
push 0
push 1
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.10019e00
xor ebx, ebx
lea ebx, [ebx]
mov ecx, dword [ebp - 0x28]
cmp ebx, ecx
jge 0x100236a4
mov esi, dword [ebp - 0x1c]
sub ecx, ebx
push 1
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push 0
push esi
call fcn.100195b0
mov ecx, dword [ebp - 0x18]
call fcn.10018740
cmp eax, 0x10
jne 0x10023667
mov edx, dword [ebp + 0x314]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push edx
push esi
push eax
push 1
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10019f70
mov eax, ebx
imul eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
xor ecx, ecx
cmp ecx, dword [ebp - 0x24]
jge 0x1002369c
cmp edi, edi
movzx edx, byte [esi + 2]
mov byte [eax], dl
movzx edx, byte [esi + 1]
mov byte [eax + 1], dl
movzx edx, byte [esi]
mov byte [eax + 2], dl
jne 0x10023692
mov byte [eax + 3], 0
add esi, 3
add eax, edi
add ecx, 1
jmp 0x10023672
add ebx, 1
jmp 0x10023620
mov ebx, dword [ebp - 0x30]
xor eax, eax
mov edx, ecx
imul edx, ebx
lea esi, [edx + 0x36]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3e], esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
lea ecx, [edi*8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x38], eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
xor esi, esi
mov word [ebp - 0x40], 0x4d42
mov dword [ebp - 0x36], 0x36
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x68], 0x28
mov word [ebp - 0x5c], 1
mov word [ebp - 0x5a], cx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
xor edi, edi
test esi, esi
jne 0x10023787
cmp dword [ebp + 0x314], 1
push edi
jne 0x10023733
push str.EPP_EDF__03d_ByPreview.bmp
lea edx, [ebp + 0x204]
push edx
jmp 0x1002373f
push str.EPP_EDF__03d_ByPrint.bmp
lea eax, [ebp + 0x204]
push eax
call fcn.10032bbd
add esp, 0xc
lea ecx, [ebp + 0x204]
push 0x100480ec
push ecx
call fcn.10033429
add esp, 8
test eax, eax
jne 0x10023777
lea edx, [ebp + 0x204]
push 0x100480e8
push edx
call fcn.10033429
add esp, 8
mov esi, eax
jmp 0x10023717
push eax
call fcn.100332e9
add esp, 4
xor esi, esi
add edi, 1
jmp 0x10023717
push esi
push 1
lea eax, [ebp - 0x40]
push 0xe
push eax
call fcn.100331f5
push esi
push 1
lea ecx, [ebp - 0x68]
push 0x28
push ecx
call fcn.100331f5
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
imul edx, ebx
push esi
push 1
push edx
push eax
call fcn.100331f5
push esi
call fcn.100332e9
add esp, 0x34
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.10019770
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.100317f5
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100317f5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100317f5
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.10031d05
add ebp, 0x308
mov esp, ebp
pop ebp
ret