Function at 0x49fde0
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 0x49fdf7
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 0x49fe33
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 0x49fe5c
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x49fe59
mov eax, str.FILE:
mov dword [esi + 0x14], eax
mov al, byte [esp + 0x10]
test al, al
jne 0x49ffaa
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.00438460
test al, al
je 0x49fe8d
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
jmp 0x49fea4
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x34]
call fcn.00438500
test al, al
je 0x49feb8
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
cmp eax, ebx
je 0x49feb8
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.004385a0
lea ecx, [esp + 0x14]
call fcn.004385a0
cmp edi, ebx
jne 0x49fed7
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 0x49fef6
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 0x49ff70
mov ecx, dword [esi + 4]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x49ff70
mov ecx, dword [esi + 4]
push ebp
push ebx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
je 0x49ff2b
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 0x49ff4e
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 0x49ff70
mov eax, dword [esi + 0x2c]
mov ebx, ebp
inc ebp
cmp ebp, eax
jbe 0x49ff08
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 0x49ff8d
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x49ff93
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 0x49ffe0
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