Function at 0x4fe420
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
mov esi, ecx
jne 0x4fe437
pop esi
pop ebp
xor al, al
pop ebx
ret 0x24
lea ebp, [esi + 0xc]
xor ecx, ecx
mov edx, ebp
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp], 0x14
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
cmp eax, ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x28], edx
je 0x4fe473
mov dword [esi], ebx
mov al, byte [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
test al, al
mov dword [esi + 8], edx
mov byte [esi + 0x25], 0
je 0x4fe49c
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4fe499
mov eax, str.FILE:
mov dword [esi + 0x14], eax
mov al, byte [esp + 0x10]
test al, al
jne 0x4fe5ea
push edi
push ecx
lea ecx, [esp + 0x18]
mov byte [esi + 0x25], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
xor edi, edi
call fcn.00434f80
test al, al
je 0x4fe4cd
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
jmp 0x4fe4e4
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x34]
call fcn.00435020
test al, al
je 0x4fe4f8
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
cmp eax, ebx
je 0x4fe4f8
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDCW]
mov edi, eax
lea ecx, [esp + 0x30]
call fcn.004350c0
lea ecx, [esp + 0x14]
call fcn.004350c0
cmp edi, ebx
jne 0x4fe517
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x24
push ebp
push edi
call dword [sym.imp.GDI32.dll_StartDocW]
cmp eax, ebx
mov dword [esi + 0x20], eax
jg 0x4fe536
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x24
mov ecx, dword [esi + 4]
push edi
mov edx, dword [ecx]
call dword [edx]
mov ebp, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ebp, eax
ja 0x4fe5b0
mov ecx, dword [esi + 4]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x4fe5b0
mov ecx, dword [esi + 4]
push ebp
push ebx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
je 0x4fe56b
push eax
push edi
call dword [sym.imp.GDI32.dll_ResetDCW]
push edi
call dword [sym.imp.GDI32.dll_StartPage]
mov ecx, dword [esi + 4]
push edi
push ebp
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 4]
push edi
push ebp
mov edx, dword [ecx]
call dword [edx + 0xc]
test al, al
jne 0x4fe58e
mov byte [esi + 0x24], 1
mov ecx, dword [esi + 4]
push edi
push ebp
mov eax, dword [ecx]
call dword [eax + 0x10]
push edi
call dword [sym.imp.GDI32.dll_EndPage]
mov al, byte [esi + 0x24]
test al, al
jne 0x4fe5b0
mov eax, dword [esi + 0x2c]
mov ebx, ebp
inc ebp
cmp ebp, eax
jbe 0x4fe548
mov ecx, dword [esi + 4]
mov al, byte [esi + 0x24]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [esi + 0x24]
push edi
test al, al
je 0x4fe5cd
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x4fe5d3
call dword [sym.imp.GDI32.dll_EndDoc]
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x24
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push esi
push 0x4fe620
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, ebx
pop esi
pop ebp
setne al
pop ebx
ret 0x24