Function at 0x45d900
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539388
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
push 0
push 4
mov eax, dword [ebp - 0x78]
push eax
push 0x45d880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.004c73d3
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
push eax
push 0x45fa60
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x59a0bc], eax
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0xc], eax
call fcn.004c02e6
push eax
lea ecx, [ebp - 0x18]
call fcn.004514d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0xc]
push eax
push str.COpenAsDialog::DoModal_m_nRetVal_d
lea ecx, [ebp - 0x18]
push ecx
call fcn.00451560
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x599eb0
lea ecx, [ebp - 0x14]
call fcn.0044f380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00470330
mov ecx, eax
call fcn.004703c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
push 0x2e
mov eax, dword [ebp - 0x38]
push eax
call fcn.004f8f45
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x45da22
mov dword [ebp - 0x7c], 0xffffffff
jmp 0x45da2d
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x7c]
sub edx, 1
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0044e690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
push 0x546ea0
call fcn.0046fdf0
add esp, 8
movzx edx, al
test edx, edx
jne 0x45da8f
lea eax, [ebp - 0x10]
push eax
push str.xlsx
call fcn.0046fdf0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x45da8f
lea edx, [ebp - 0x10]
push edx
push 0x546e8c
call fcn.0046fdf0
add esp, 8
movzx eax, al
test eax, eax
je 0x45dacb
cmp dword [0x59a0d0], 0
je 0x45dacb
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044f990
mov eax, dword [ebp - 0x1c]
jmp 0x45db11
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0xc]
push edx
push str.COpenAsDialog::DoModal_m_nRetVal:_d
call fcn.0047c040
add esp, 8
mov eax, dword [0x59a0d0]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044f990
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8