Function at 0x40e200
Capabilities:
Accept command line arguments
Create thread
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
mov eax, dword [0x56800c]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push esi
mov ebx, 1
push edi
mov dword [esp + 0x20], ebx
call fcn.0041e720
mov eax, dword [0x56b4bc]
test eax, eax
je 0x40e239
push ebx
call eax
jmp 0x40e260
cmp dword [0x56b4b8], 0
je 0x40e260
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 5
push eax
push 0x22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x56b4b8]
push 0x4f002c
push 0
call fcn.004c090a
add esp, 8
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call fcn.004c0c24
add esp, 4
push eax
call fcn.004c0a88
add esp, 4
call fcn.0040de40
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], 0x7ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x40]
mov dword [esp + 0x30], ebx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x44], 0
push eax
mov byte [esp + 0x5c], bl
mov dword [esp + 0x44], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp byte [esp + 0x50], 0
je 0x40e2fe
lea eax, [esp + 0x4c]
push eax
call dword [esp + 0x44]
call fcn.00411420
call fcn.00412660
push 0x41f410
mov edx, str.UITask_Wnd_Class
lea ecx, [esp + 0x1cc]
call fcn.00416a60
add esp, 4
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push str.UITask_Dispatch_Window
push str.UITask_Wnd_Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esp + 0x58]
mov dword [0x56b5f4], eax
call fcn.0040cb40
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x5c]
call fcn.0048e0e0
cmp byte [esp + 0x165], 0
je 0x40e3f6
lea ecx, [esp + 0x58]
call fcn.0040eba0
call fcn.0040efa0
call fcn.0041f470
push dword [0x56b5f4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x56b5f4], 0
call fcn.00483fd0
call fcn.00420930
lea ecx, [esp + 0x58]
call fcn.0040ccc0
cmp byte [esp + 0x50], 0
je 0x40e3cd
push dword [esp + 0x4c]
call dword [esp + 0x48]
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x4b4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x166], 0
je 0x40e40b
lea ecx, [esp + 0x58]
call fcn.0040ed30
jmp 0x40e38b
mov cl, byte [esp + 0x120]
call fcn.00401670
mov ecx, dword [esp + 0x144]
test ecx, ecx
je 0x40e43d
call fcn.0041ce70
push dword [0x56c884]
mov esi, eax
call fcn.004bf8aa
add esp, 4
mov dword [0x56c884], esi
call fcn.00481620
lea ecx, [esp + 0x58]
call fcn.00482020
mov esi, dword [esp + 0x170]
mov edi, dword [0x56be3c]
test esi, esi
jne 0x40e466
mov esi, dword [edi + 0xa4]
test esi, esi
je 0x40e492
cmp esi, dword [edi + 0xa4]
je 0x40e48b
push dword [edi + 0xa4]
call fcn.004bf8aa
add esp, 4
push esi
call fcn.004c95c5
add esp, 4
mov dword [edi + 0xa4], eax
mov ecx, esi
call fcn.00488e20
cmp byte [esp + 0x134], 0
je 0x40e4a7
call fcn.00416d70
call dword [sym.imp.libmupdf.dll_fz_redirect_io_to_console]
cmp byte [esp + 0x100], 0
je 0x40e4b6
call fcn.004055f0
cmp dword [esp + 0xac], 0
jbe 0x40e4e3
lea ecx, [esp + 0xac]
call fcn.00472d80
cmp byte [esp + 0x134], 0
je 0x40e4e3
push str.pause
call fcn.004c0b9a
add esp, 4
cmp byte [esp + 0x140], 0
jne 0x40e9fa
mov al, byte [esp + 0x16c]
mov edx, 0x56c854
mov ecx, 0x56c850
mov byte [0x56b0b9], al
call fcn.00405ed0
call fcn.0040d2e0
test al, al
je 0x40e9fa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.0040d470
test al, al
je 0x40e9fa
cmp dword [esp + 0x138], 0
je 0x40e549
lea ecx, [esp + 0x58]
call fcn.0040db90
test al, al
je 0x40e9fa
mov eax, dword [esp + 0x104]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40e602
xor ebx, ebx
cmp dword [esp + 0x58], ebx
jbe 0x40e5f8
jmp 0x40e570
mov eax, dword [esp + 0x64]
cmp byte [esp + 0x141], 0
mov edi, dword [esp + 0x108]
sete byte [esp + 0x18]
mov ecx, dword [eax + ebx*4]
call fcn.0041ce70
push 1
mov esi, eax
xor edx, edx
push 1
push 0
mov ecx, esi
call fcn.0042d260
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
push dword [esp + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.00478470
add esp, 8
mov byte [esp + 0x13], al
test edi, edi
je 0x40e5cd
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push esi
call fcn.004bf8aa
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x40e5e1
inc dword [esp + 0x20]
inc ebx
cmp ebx, dword [esp + 0x58]
jae 0x40e5f8
mov eax, dword [esp + 0x104]
mov dword [esp + 0x1c], eax
jmp 0x40e570
mov ebx, dword [esp + 0x20]
dec ebx
jmp 0x40e9fa
cmp byte [esp + 0x102], 0
mov dword [esp + 0x18], 0
jne 0x40e6bc
cmp dword [esp + 0x150], 0
jne 0x40e6bc
mov edx, dword [0x56b084]
test edx, edx
jne 0x40e6c2
cmp byte [esp + 0x114], dl
je 0x40e64b
push edx
push str.SUMATRA_PDF_FRAME
call dword [sym.imp.USER32.dll_FindWindowW]
jmp 0x40e669
mov ecx, dword [0x56be3c]
cmp byte [ecx + 5], 0
jne 0x40e660
cmp byte [ecx + 0xed], 0
je 0x40e6c8
lea ecx, [esp + 0x18]
call fcn.0040dec0
mov edi, eax
test edi, edi
je 0x40e6bc
mov eax, dword [esp + 0x58]
xor esi, esi
test eax, eax
je 0x40e6b0
lea esp, [esp]
mov edx, dword [esp + 0x64]
test esi, esi
mov ecx, edi
sete al
movzx eax, al
mov edx, dword [edx + esi*4]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040d4b0
mov eax, dword [esp + 0x60]
inc esi
add esp, 8
cmp esi, eax
jb 0x40e680
test eax, eax
jne 0x40e9fa
mov ecx, edi
call fcn.00418260
jmp 0x40e9fa
mov edx, dword [0x56b084]
mov ecx, dword [0x56be3c]
mov eax, dword [ecx + 0xf4]
mov byte [esp + 0x12], 0
cmp dword [eax], 0
jbe 0x40e6e3
test edx, edx
jne 0x40e6e3
mov al, byte [ecx + 7]
mov byte [esp + 0x12], al
mov esi, dword [ecx + 0xf8]
mov eax, dword [esi]
test eax, eax
je 0x40e793
test edx, edx
jne 0x40e793
cmp eax, 1
jne 0x40e72e
mov ecx, dword [esi + 0xc]
mov edx, 0x4f0038
mov ecx, dword [ecx]
call fcn.004195f0
mov ecx, dword [0x56be3c]
test al, al
je 0x40e72e
mov ecx, dword [ecx + 0xf8]
call fcn.0040c180
mov ecx, dword [0x56be3c]
mov byte [esp + 0x12], bl
mov edx, dword [ecx + 0xf8]
cmp dword [edx], 0
jbe 0x40e793
lea esp, [esp]
mov eax, dword [edx]
mov esi, dword [edx + 0xc]
lea ecx, [eax - 1]
mov edi, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
mov dword [esp + 0x14], edi
lea edi, [eax - 1]
cmp edi, eax
jae 0x40e76c
lea esi, [esi + edi*4]
cmp esi, ecx
je 0x40e764
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], 0
dec dword [edx]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c130
mov ecx, dword [0x56be3c]
mov edx, dword [ecx + 0xf8]
cmp dword [edx], 0
ja 0x40e740
mov al, byte [esp + 0x12]
test al, al
jne 0x40e7e1
cmp dword [esp + 0x58], 0
jne 0x40e7e1
cmp byte [ecx + 0xb8], al
je 0x40e7e1
cmp byte [ecx + 0xec], al
je 0x40e7e1
push 0x4011
push 0x2b4
lea eax, [esp + 0x200]
mov byte [esp + 0x1b], bl
push eax
push 0
push 0x4ef36c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [0x56be3c]
mov al, byte [esp + 0x12]
jmp 0x40e7e6
mov byte [esp + 0x13], 0
xor edi, edi
test al, al
je 0x40e867
mov esi, dword [ecx + 0xf4]
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edx
mov eax, dword [esi]
mov dword [esp + 0x24], eax
test eax, eax
je 0x40e867
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + edx*4]
mov ecx, ebx
mov dword [esp + 0x54], ebx
call fcn.004043f0
mov ebx, dword [ebx]
mov edi, eax
xor esi, esi
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e83b
mov edx, dword [ebx + 0xc]
mov ecx, edi
mov edx, dword [edx + esi*4]
call fcn.0040da10
inc esi
cmp esi, dword [esp + 0x14]
jne 0x40e827
mov edx, dword [esp + 0x54]
mov ecx, edi
mov edx, dword [edx + 4]
dec edx
call fcn.004669a0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x24]
jne 0x40e806
mov ecx, dword [0x56be3c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xf4]
call fcn.0047d510
mov cl, byte [esp + 0x12]
test cl, cl
je 0x40e897
mov eax, dword [0x56be3c]
cmp byte [eax + 5], 0
jne 0x40e897
cmp byte [eax + 0xed], 0
jne 0x40e897
call fcn.00481a60
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x58]
xor esi, esi
mov dword [esp + 0x24], eax
test eax, eax
je 0x40e916
mov eax, dword [esp + 0x64]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x28], eax
test cl, cl
je 0x40e8c1
mov dl, 1
mov ecx, eax
call fcn.00401bb0
test eax, eax
jne 0x40e8fb
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x58]
test edi, edi
sete al
movzx eax, al
push eax
call fcn.0040d710
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e8e3
inc ebx
jmp 0x40e8fb
cmp byte [esp + 0x102], 0
je 0x40e8fb
mov dl, byte [esp + 0x101]
mov ecx, edi
call fcn.00477650
mov cl, byte [esp + 0x12]
inc esi
cmp esi, dword [esp + 0x24]
jne 0x40e8a5
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40e916
test edi, edi
je 0x40e9fa
cmp byte [esp + 0x102], 0
je 0x40e92e
cmp byte [esp + 0x101], 0
jne 0x40e9fa
test edi, edi
jne 0x40e943
xor ecx, ecx
call fcn.004043f0
mov edi, eax
test edi, edi
je 0x40e9fa
mov eax, dword [0x56be3c]
cmp dword [eax + 0xac], 0
je 0x40e959
mov ecx, dword [edi + 0x5c]
call fcn.0040e0a0
cmp dword [esp + 0x150], 0
je 0x40e987
mov eax, dword [0x5689b8]
mov ecx, edi
and eax, 0xfffffffb
or eax, 0x1000000
mov dword [0x5689b8], eax
call fcn.00402680
mov edx, edi
lea ecx, [esp + 0x58]
call fcn.00474b10
mov eax, dword [0x56be3c]
cmp byte [eax + 0xb1], 0
je 0x40e99e
mov dl, 1
mov ecx, edi
call fcn.00405bb0
cmp byte [esp + 0x13], 0
je 0x40e9e0
push 0
call fcn.0048aec0
test eax, eax
je 0x40e9e0
push 0x68
call fcn.004bcd25
add esp, 4
mov ecx, eax
call fcn.0040cdd0
push 0
push 0
mov esi, eax
push esi
push 0x420da0
push 0
push 0
mov dword [0x56b0bc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
call fcn.00482420
call fcn.0040e150
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00418b40
call fcn.00487dd0
mov esi, dword [0x56bee8]
test esi, esi
je 0x40ea21
push 0x56ca34
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.0041fdc0
push 0x56ca34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x569758], 0
jbe 0x40ea46
lea ebx, [ebx]
mov ecx, dword [0x569764]
mov ecx, dword [ecx]
call fcn.00404520
cmp dword [0x569758], 0
ja 0x40ea30
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]