Function at 0x40d270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x158
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], edi
mov eax, dword [edi + 0xec]
cmp eax, 0xed8
jge 0x44a77e
inc eax
mov dword [edi + 0xec], eax
cmp eax, 1
je 0x40d73f
cmp byte [edi + 0xfc], 0
mov byte [edi + 0x144], 0
jne 0x40d566
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
nop
cmp byte [edi + 0x144], 0
jne 0x40d566
cmp byte [0x4d1321], 0
jne 0x44a7bc
cmp byte [0x4d18c8], 0
jne 0x44a7ce
push 1
push 0
push 0
push 0
lea eax, [esp + 0xac]
push eax
call esi
test eax, eax
jne 0x40d690
cmp byte [0x4d1322], 1
je 0x44a840
mov eax, dword [edi + 0xf8]
cmp eax, 1
je 0x44b842
cmp dword [0x4d256c], 0
jne 0x44a862
cmp byte [0x4d1327], 1
je 0x44a923
cmp dword [edi + 0x454], 0
je 0x40d398
cmp byte [0x4d24f8], 0
jne 0x40d398
mov esi, dword [edi + 0x44c]
lea eax, [edi + 0x44c]
mov byte [0x4d24f8], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], eax
test esi, esi
jne 0x40d58d
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, eax
mov dword [esp + 0x4c], eax
test ecx, ecx
jne 0x40d5d6
mov edi, dword [esp + 0x48]
mov byte [0x4d24f8], cl
cmp dword [esp + 0x44], ecx
jg case.default.0x44b5da
cmp byte [0x4d189c], 0
je 0x40d442
cmp byte [edi + 0x458], 1
je 0x40d442
cmp byte [0x4d18c8], 1
je 0x40d442
push 0x10
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 8
call fcn.004201ab
add esp, 4
mov dword [esp + 0xa0], eax
xor ecx, ecx
mov word [eax], cx
push 4
call fcn.0042017b
add esp, 4
mov dword [esp + 0xac], eax
mov dword [eax], 1
cmp dword [0x4d18bc], 0
jne 0x44a99a
cmp byte [0x4d189c], 0
je 0x44ab4e
mov esi, dword [esp + 0xac]
add dword [esi], 0xffffffff
jne 0x40d442
push dword [esp + 0xa0]
call fcn.004201b4
add esp, 4
push 4
push esi
call fcn.0042016d
add esp, 8
cmp dword [edi + 0x184], 0
jne 0x44ab77
mov al, 1
test al, al
je 0x44ab7e
cmp byte [0x4d1a10], 0
jne 0x44b183
mov eax, dword [edi + 0xf8]
cmp eax, 7
je 0x44b283
cmp eax, 2
je 0x40d6fd
cmp eax, 8
je 0x44b702
cmp eax, 9
je 0x44b702
cmp eax, 3
je 0x40d6fd
cmp eax, 4
je 0x40d6fd
cmp eax, 5
je 0x40d6fd
cmp eax, 6
je 0x40d6fd
mov esi, dword [ebp + 8]
mov dword [edi + 0xf4], esi
lea eax, [esi + 1]
mov dword [ebp + 8], eax
cmp esi, dword [0x4d2380]
jg 0x44b5b2
test esi, esi
jle 0x44b5b2
shl esi, 4
add esi, dword [0x4d23bc]
je 0x44b5b2
mov eax, dword [esi + 4]
xor edx, edx
mov ecx, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], edx
movsx eax, word [eax + 8]
test eax, eax
jne 0x40d5ec
lea eax, [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.0040ab40
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x40d667
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
cmp ecx, 5
jge 0x40d7c7
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], 0
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
cmp byte [edi + 0xfc], 0
je 0x40d2c0
mov eax, dword [edi + 0xec]
mov byte [edi + 0x144], 0
cmp eax, 1
je 0x40d752
dec eax
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
jne 0x40d5ce
mov edi, dword [eax + 0x14]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
xor edx, edx
sub eax, edi
cmp edi, 0x7fffffff
ja 0x44a93d
cmp ecx, 0x7fffffff
ja 0x40d5b9
cdq
mov edi, dword [esi]
test edx, edx
jl 0x40d5ce
jg 0x44a94e
cmp eax, dword [edi + 0x18]
jae 0x44a94e
mov esi, dword [esi + 4]
jmp 0x40d368
mov ecx, dword [eax]
cmp byte [ecx + 0x11], 0
jne 0x44a989
mov ecx, dword [eax + 4]
mov eax, ecx
jmp 0x40d378
cmp eax, 0x33
jne 0x40d5fe
push esi
mov ecx, edi
call fcn.0040adc0
jmp 0x40d522
dec eax
cmp eax, 0x7e
ja case.0x40d60f.2
movzx eax, byte [eax + 0x40d7f0]
jmp dword [eax*4 + 0x40d7dc]
lea eax, [esp + 0x20]
mov ecx, edi
push eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
call fcn.0040bc30
test eax, eax
js 0x40d522
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x7f
je 0x40d522
jmp 0x44b4a2
lea eax, [esp + 0x6b]
mov ecx, edi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
call fcn.0040c600
jmp 0x40d62a
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x44b525
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x28], 0
jmp 0x40d52e
cmp dword [esp + 0xa0], 0x12
je 0x44a82a
mov ecx, dword [0x4d18b8]
cmp ecx, 0xffffffff
jne 0x44a7e0
lea eax, [esp + 0x9c]
mov ecx, 0x4d1890
push eax
call fcn.0041a876
test eax, eax
je 0x40d6df
push 1
push 0
push 0
push 0
lea eax, [esp + 0xac]
push eax
call esi
test eax, eax
je 0x40d301
jmp 0x40d690
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40d6c3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x2f0], 0
je 0x40d72b
mov ecx, dword [edi + 0x2f8]
call fcn.0041fb34
test edx, edx
jl 0x40d72b
jg 0x40d7a4
cmp eax, dword [edi + 0x2f0]
jae 0x40d7a4
mov eax, dword [edi + 0xf8]
cmp eax, 3
jl case.default.0x44b5da
jmp 0x44b5ce
mov esi, dword [edi + 0x11c]
test esi, esi
je 0x40d2a5
jmp 0x44a799
mov ecx, edi
call fcn.0040d89c
cmp byte [edi + 0xfc], 1
je 0x40d583
mov ecx, edi
call fcn.0040d8b6
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push dword [0x4d134c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x144]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jle 0x40d583
jmp 0x44b861
cmp dword [edi + 0xf8], 2
jne 0x44b5c1
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
jmp case.default.0x44b5da
add ecx, 0xfffffffb
cmp ecx, 0xa
ja case.0x40d7d3.6
jmp dword [ecx*4 + 0x40d870]
push 0xffffffffffffffff
push 0x9a
mov byte [0x4d1320], 0
call fcn.004738d3
or eax, 0xffffffff
jmp 0x40d585
push dword [esi]
mov ecx, edi
call fcn.00406530
test eax, eax
je 0x44a7b4
mov eax, dword [eax + 0x10]
mov ecx, edi
push 1
inc eax
push eax
call fcn.0045faba
mov esi, dword [esi + 4]
jmp 0x40d745
cmp byte [edi + 0x145], 0
je 0x40d31d
jmp 0x40d2da
cmp dword [edi + 0xf8], 0
je 0x40d31d
jmp 0x40d2e7
cmp ecx, dword [0x4d18f4]
jge 0x44a81b
mov eax, dword [0x4d18f0]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
je 0x44a81b
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x44a81b
lea edx, [esp + 0x9c]
push edx
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40d6c3
jmp 0x40d6ad
mov dword [0x4d18b8], 0xffffffff
jmp 0x40d6ad
mov byte [edi + 0xfc], 1
mov dword [edi + 0xf8], 1
jmp 0x40d301
mov byte [0x4d1327], 0
mov eax, 1
mov byte [0x4d1322], 0
mov dword [edi + 0xf8], 1
jmp 0x40d314
mov eax, dword [0x4d2570]
push 8
push eax
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x18], ecx
call fcn.0042016d
dec dword [0x4d256c]
add esp, 8
mov dword [0x4d2570], esi
neg esi
sbb esi, esi
and dword [0x4d2574], esi
xor esi, esi
mov ecx, dword [edi + 0x1c8]
test ecx, ecx
je 0x44a8c3
mov edx, dword [edi + 0x1c4]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
mov eax, dword [eax]
test eax, eax
je 0x44a8b4
cmp dword [eax], ecx
je 0x44a8bd
inc esi
cmp esi, dword [edi + 0x1c8]
jb 0x44a8a7
mov ecx, dword [edi + 0x1c8]
cmp esi, ecx
je 0x44a918
mov eax, dword [edi + 0x1c4]
mov ecx, edi
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
add eax, 8
push eax
call fcn.00406530
mov ecx, dword [edi + 0x1c4]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
lea ecx, [edi + 0x14c]
add edx, 0x18
cmp ecx, edx
je 0x44a903
push edx
call fcn.0040478a
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov ecx, edi
push 0
push 1
inc eax
push eax
call fcn.00473bb1
jmp case.default.0x44b5da
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x40d32a
cmp byte [0x4d1321], 0
jne 0x40d337
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d559
cmp ecx, 0x7fffffff
jbe 0x40d5b9
jmp 0x40d5b8
inc dword [esp + 0x44]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x14], eax
push dword [esi]
call fcn.00406530
mov ecx, dword [esi]
push 0
push 1
mov byte [ecx + 0x10], 1
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x50]
inc eax
push eax
call fcn.00473bb1
mov eax, dword [esi]
mov byte [eax + 0x10], 0
jmp 0x40d5ce
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00473e41
jmp 0x40d374
mov eax, dword [0x4d18c0]
lea ecx, [esp + 0x9c]
mov esi, dword [eax]
push esi
call fcn.00492acf
mov ecx, 0x4d18bc
call fcn.0041bbbe
test esi, esi
je 0x44a9c4
push ecx
mov ecx, esi
call fcn.00492b3a
cmp dword [esp + 0xa4], 0
mov dword [0x4d24fc], 0
sete al
test al, al
jne 0x40d402
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
call fcn.00406530
mov esi, eax
test esi, esi
je 0x40d402
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0xf4]
push 0x4adf98
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 1
call fcn.004045fd
push 1
lea eax, [esp + 0x8c]
mov ecx, 0x4d2350
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00405070
lea ecx, [esp + 0xf4]
call fcn.004020f8
lea ecx, [esp + 0x88]
call fcn.00405f80
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x104]
push str._GUI_WINHANDLE
mov dword [esp + 0x98], 7
mov dword [esp + 0x8c], eax
call fcn.004045fd
push 1
lea eax, [esp + 0x8c]
mov ecx, 0x4d2350
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00405070
lea ecx, [esp + 0x104]
call fcn.004020f8
lea ecx, [esp + 0x88]
call fcn.00405f80
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x114]
push str._GUI_CTRLHANDLE
mov dword [esp + 0x98], 7
mov dword [esp + 0x8c], eax
call fcn.004045fd
push 1
lea eax, [esp + 0x8c]
mov ecx, 0x4d2350
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00405070
lea ecx, [esp + 0x114]
call fcn.004020f8
mov byte [edi + 0x458], 1
mov ecx, edi
mov eax, dword [esi + 0x10]
push 0
push 1
inc eax
push eax
call fcn.00473bb1
lea ecx, [esp + 0x88]
mov byte [edi + 0x458], 0
call fcn.00405f80
lea ecx, [esp + 0xa0]
call fcn.004020f8
jmp case.default.0x44b5da
cmp dword [0x4d19fc], 0
jne 0x44ab6a
cmp dword [0x4d24fc], 0x64
jge 0x44ab6a
inc dword [0x4d24fc]
push 0
jmp 0x44ab6c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d41c
xor al, al
jmp 0x40d451
cmp byte [edi + 0x484], 1
je 0x40d459
xor eax, eax
mov byte [edi + 0x484], 1
push dword [edi + 0x188]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], 0x49c9ac
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call fcn.0047345c
lea ecx, [edi + 0x184]
call fcn.00467733
mov esi, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], 0
push dword [esi]
call fcn.00406020
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.00405efc
push dword [esi + 8]
mov ecx, edi
call fcn.00406530
mov edx, eax
mov dword [esp + 0x44], edx
mov ecx, dword [edx + 0x10]
push ecx
call fcn.0040393f
mov dword [edi + 0xf4], ecx
mov esi, 3
cmp dword [edx + 0x14], 0
mov dword [esp + 0x1c], eax
jle 0x44add5
mov eax, dword [esp + 0x7c]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi*4]
lea edx, [ecx + esi*4]
cmp word [eax + 8], 0
jne 0x44ad6d
mov eax, dword [ecx + esi*4 + 4]
cmp word [eax + 8], 0x33
je 0x44acd8
mov eax, dword [ecx + esi*4]
mov edi, dword [ecx + esi*4 + 4]
mov eax, dword [eax]
cmp eax, dword [edi]
mov edi, dword [esp + 0x48]
jne 0x44acd8
mov eax, dword [ecx + esi*4 + 4]
mov ecx, edi
movsx eax, word [eax + 0xa]
push eax
push 0x91
call fcn.004738d3
mov esi, dword [esp + 0x38]
test esi, esi
je 0x44acb8
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x44aca5
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
cmp eax, 5
jl case.0x44b16b.6
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x44b16b.6
jmp dword [eax*4 + 0x44b896]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
cmp eax, 0x24
je 0x44ad5b
cmp eax, 0x1e
je 0x44ad5b
mov eax, dword [ecx + esi*4 + 4]
mov ecx, edi
movsx eax, word [eax + 0xa]
push eax
push 0x91
call fcn.004738d3
mov esi, dword [esp + 0x38]
test esi, esi
je 0x44ad3b
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x44ad28
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
cmp eax, 5
jl case.0x44b16b.6
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x44b16b.6
jmp dword [eax*4 + 0x44b8c2]
mov eax, dword [edx + 4]
add edx, 4
inc esi
cmp word [eax + 8], 0
je 0x44ac44
mov eax, dword [ecx + esi*4 + 4]
inc esi
cmp word [eax + 8], 0x41
jne 0x44ada2
inc esi
xor edx, edx
mov eax, dword [ecx + esi*4]
movzx eax, word [eax + 8]
cmp ax, 0x47
jne 0x44ad8f
inc edx
jmp 0x44ae72
cmp ax, 0x48
jne 0x44ae64
sub edx, 1
jns 0x44ae72
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x58]
push dword [eax]
call fcn.0045f7b8
mov eax, dword [esp + 0x6c]
inc esi
mov edx, dword [esp + 0x44]
inc eax
add dword [esp + 0xc], 4
mov dword [esp + 0x6c], eax
cmp eax, dword [edx + 0x14]
jl 0x44ac2c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
push dword [edx + 0x10]
call fcn.0045f83f
mov eax, dword [esp + 0x44]
mov esi, 3
mov dword [esp + 0x4c], 1
cmp dword [eax + 0x14], 1
jl 0x44b05c
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x70], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
lea ecx, [eax + esi*4]
mov eax, dword [ecx]
cmp word [eax + 8], dx
jne 0x44ae3d
mov edi, dword [esp + 0x50]
mov eax, dword [edi + esi*4]
mov eax, dword [eax]
cmp eax, 0x24
je 0x44ae2c
cmp eax, 0x1e
jne 0x44ae30
mov edx, 0x100
inc esi
add ecx, 4
mov eax, dword [ecx]
cmp word [eax + 8], 0
je 0x44ae18
mov dword [esp + 0x70], edx
mov edi, dword [esp + 0x50]
xor ecx, ecx
add edi, 4
mov edx, 1
lea edi, [edi + esi*4]
mov eax, dword [edi]
movzx eax, word [eax + 8]
cmp ax, 0x47
jne 0x44af5c
inc ecx
jmp 0x44b016
cmp ax, 0x40
jne 0x44ae72
test edx, edx
je 0x44ada2
inc esi
jmp 0x44ad7c
mov esi, dword [esp + 0x30]
test esi, esi
je case.0x44b16b.6
mov ecx, esi
call fcn.004020f8
push 0x14
jmp 0x44aede
mov esi, dword [esp + 0x30]
test esi, esi
je case.0x44b16b.6
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10
jmp 0x44aede
mov esi, dword [esp + 0x30]
test esi, esi
je case.0x44b16b.6
mov ecx, esi
call fcn.00405890
push 4
jmp 0x44aede
mov esi, dword [esp + 0x30]
push dword [esi + 4]
call fcn.004201b4
add esp, 4
push 8
jmp 0x44aede
mov ecx, dword [esp + 0x30]
test ecx, ecx
je case.0x44b16b.6
mov eax, dword [ecx]
push 1
call dword [eax]
jmp case.0x44b16b.6
lea ecx, [esi + 8]
call fcn.004020f8
push 0x18
push esi
call fcn.0042016d
add esp, 8
jmp case.0x44b16b.6
push ecx
call fcn.00460570
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x78], 0x49c9ac
call fcn.0045f789
push dword [esp + 0x7c]
call fcn.004201b4
add esp, 4
mov dword [esp + 0x58], 0x49c9ac
lea ecx, [esp + 0x58]
call fcn.0045f789
push dword [esp + 0x5c]
call fcn.004201b4
add esp, 4
mov byte [edi + 0x484], 0
jmp 0x40d459
mov esi, dword [esp + 0x30]
test esi, esi
je case.0x44b16b.6
jmp 0x44aed4
mov esi, dword [esp + 0x30]
test esi, esi
je case.0x44b16b.6
jmp 0x44ae80
cmp ax, 0x48
jne 0x44b008
sub ecx, 1
jns 0x44b016
mov eax, dword [esp + 0x6c]
lea ecx, [edx + esi]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x4c], eax
jle 0x44b01f
lea eax, [esi + 2]
mov dword [esp + 0xd0], 0
push ecx
mov dword [esp + 0x54], eax
mov ecx, edi
lea eax, [esp + 0xd4]
mov dword [esp + 0xdc], 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0xe4], 1
push eax
push dword [esp + 0x28]
call fcn.00406570
test eax, eax
js 0x44b107
mov eax, dword [esp + 0x70]
or eax, 0x200
push 1
push eax
lea eax, [esp + 0xd8]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.00404bd4
lea ecx, [esp + 0xd0]
call fcn.00405f80
jmp 0x44b03c
cmp ax, 0x40
jne 0x44b016
test ecx, ecx
je 0x44af6f
inc edx
add edi, 4
jmp 0x44ae4e
mov eax, dword [esp + 0xc]
or edx, 0x200
push 1
push edx
push dword [eax]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.00404bd4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
inc eax
mov esi, dword [esp + 0x10]
add dword [esp + 0xc], 4
inc esi
mov dword [esp + 0x4c], eax
cmp eax, dword [ecx + 0x14]
jle 0x44adf8
push 0x4c5e2c
lea ecx, [esp + 0x128]
call fcn.004045fd
xor eax, eax
cmp dword [esp + 0x3c], 6
push 1
setne al
dec eax
and eax, dword [esp + 0x34]
push 0
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00404bd4
lea ecx, [esp + 0x124]
call fcn.004020f8
mov eax, dword [esp + 0x44]
mov ecx, edi
push 0
push 0
mov eax, dword [eax + 0x10]
inc eax
push eax
call fcn.00473bb1
mov ecx, 0x4d2360
call fcn.00404a3b
lea ecx, [esp + 0x30]
call fcn.00405f80
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x49c9ac
call fcn.0045f789
push dword [esp + 0x7c]
call fcn.004201b4
add esp, 4
mov dword [esp + 0x58], 0x49c9ac
lea ecx, [esp + 0x58]
call fcn.0045f789
push dword [esp + 0x5c]
call fcn.004201b4
add esp, 4
mov byte [edi + 0x484], 0
jmp case.default.0x44b5da
lea ecx, [esp + 0xd0]
call fcn.00405f80
mov esi, dword [esp + 0x38]
test esi, esi
je 0x44b152
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x44b13f
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
cmp eax, 5
jl case.0x44b16b.6
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x44b16b.6
jmp dword [eax*4 + 0x44b8ee]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je case.0x44b16b.6
jmp 0x44aee9
cmp byte [edi + 0x459], 1
je 0x40d466
lea ecx, [esp + 0xa0]
call fcn.00403f6a
lea eax, [esp + 0x9c]
mov ecx, 0x4d1970
push eax
call fcn.0046c325
test al, al
je 0x44b272
cmp dword [esp + 0xa4], 0
sete al
test al, al
jne 0x44b19c
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
call fcn.00406530
mov esi, eax
test esi, esi
je 0x44b19c
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xe0], ecx
lea ecx, [esp + 0x134]
push str._TRAY_ID
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 1
call fcn.004045fd
push 1
lea eax, [esp + 0xe4]
mov ecx, 0x4d2350
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00405070
lea ecx, [esp + 0x134]
call fcn.004020f8
mov byte [edi + 0x459], 1
mov ecx, edi
mov eax, dword [esi + 0x10]
push 0
push 1
inc eax
push eax
call fcn.00473bb1
lea ecx, [esp + 0xe0]
mov byte [edi + 0x459], 0
call fcn.00405f80
lea ecx, [esp + 0xa0]
call fcn.004020f8
jmp case.default.0x44b5da
lea ecx, [esp + 0xa0]
call fcn.004020f8
jmp 0x40d466
push 0xa
push dword [edi + 0x444]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x54], eax
cmp eax, 0x102
je case.default.0x44b5da
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x444]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [edi + 0x444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
jmp 0x44b2e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x448], 0
mov dword [esp + 0x10], 0
push ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0041f5e8
jmp 0x40d7b1
mov al, byte [edi + 0x171]
mov edx, dword [edi + 0x16c]
mov byte [esp + 0xb], al
test al, al
je 0x44b310
mov ecx, dword [edx + 0x10]
jmp 0x44b312
mov ecx, edx
call fcn.0045f6c9
test al, al
jne 0x44b46c
mov eax, dword [esp + 0x10]
mov ecx, edi
movsx eax, word [eax + 0xa]
push eax
push 0xa7
call fcn.004738d3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x44b373
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x44b360
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
cmp eax, 5
jl case.0x40d7d3.6
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x40d7d3.6
jmp dword [eax*4 + 0x44b91a]
mov eax, dword [esp + 0x20]
push dword [eax + 4]
call fcn.004201b4
add esp, 4
push 8
push dword [esp + 0x24]
jmp 0x44b45f
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x40d7d3.6
push eax
jmp 0x44b3bd
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10
jmp 0x44b3d4
push dword [edx + 4]
call fcn.004201b4
add esp, 4
push 8
push dword [esp + 0x24]
jmp 0x44b45f
mov esi, dword [esp + 0x20]
test esi, esi
je case.0x40d7d3.6
lea ecx, [esi + 8]
call fcn.004020f8
push 0x18
jmp 0x44b44f
mov esi, dword [esp + 0x20]
test esi, esi
je case.0x40d7d3.6
mov ecx, esi
call fcn.00405890
push 4
jmp 0x44b44f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je case.0x40d7d3.6
push ecx
call fcn.00460570
jmp case.0x40d7d3.6
mov ecx, dword [esp + 0x20]
test ecx, ecx
je case.0x40d7d3.6
mov eax, dword [ecx]
push 1
call dword [eax]
jmp case.0x40d7d3.6
mov esi, dword [esp + 0x20]
test esi, esi
je case.0x40d7d3.6
mov ecx, esi
call fcn.004020f8
push 0x14
push esi
jmp 0x44b45f
mov ecx, edx
call fcn.004020f8
push 0x14
push dword [esp + 0x20]
call fcn.0042016d
add esp, 8
jmp case.0x40d7d3.6
cmp byte [esp + 0xb], 0
je 0x44b476
mov edx, dword [edx + 0x10]
push edx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.00486a15
jmp 0x40d62a
push 0xffffffffffffffff
lea eax, [esp + 0x24]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00406570
jmp 0x40d62a
movsx eax, word [eax + 0xa]
mov ecx, edi
push eax
push 0x72
call fcn.004738d3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x44b4ef
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x44b4dc
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
push 0x10
push esi
call fcn.0042016d
add esp, 8
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
cmp eax, 5
jl case.0x40d7d3.6
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x40d7d3.6
jmp dword [eax*4 + 0x44b946]
mov eax, dword [esp + 0x20]
push dword [eax + 4]
call fcn.004201b4
add esp, 4
push 8
jmp 0x44b3d4
push dword [esi]
call fcn.004201b4
add esp, 4
push 4
push dword [esi + 0xc]
call fcn.0042016d
add esp, 8
jmp 0x40d678
test edx, edx
je case.0x40d7d3.6
jmp 0x44b3bc
test edx, edx
je case.0x40d7d3.6
lea ecx, [edx + 8]
call fcn.004020f8
push 0x18
jmp 0x44b45b
test edx, edx
je case.0x40d7d3.6
mov ecx, edx
call fcn.00405890
push 4
jmp 0x44b45b
test edx, edx
je case.0x40d7d3.6
push ecx
mov ecx, edx
call fcn.00460570
jmp case.0x40d7d3.6
test edx, edx
je case.0x40d7d3.6
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
jmp case.0x40d7d3.6
test edx, edx
je case.0x40d7d3.6
jmp 0x44b452
mov dword [edi + 0xf8], 1
jmp case.default.0x44b5da
mov dword [esp + 0x10], 0
jmp 0x44b2e0
sub eax, 3
cmp eax, 3
ja case.default.0x44b5da
jmp dword [eax*4 + 0x44b972]
mov ecx, edi
call fcn.004928d7
jmp 0x44b612
mov ecx, edi
call fcn.004928d7
jmp 0x44b5fc
push 1
mov ecx, edi
call fcn.0049294d
mov esi, eax
test esi, esi
js 0x44b618
jle 0x44b668
jmp case.default.0x44b5da
push 1
mov ecx, edi
call fcn.0049294d
mov esi, eax
test esi, esi
jns 0x44b65e
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
cmp byte [ecx + 0xd], 0
mov edx, dword [ecx + 8]
je 0x44b62b
mov edx, dword [edx + 0x38]
mov eax, esi
neg eax
mov dword [edx + 0x14], eax
cmp byte [ecx + 0xd], 0
mov eax, dword [ecx + 8]
je 0x44b63e
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
lea eax, [esp + 0x10]
push ecx
push eax
mov eax, dword [edi]
mov dword [esp + 0x18], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0041f5e8
test esi, esi
je case.default.0x44b5da
test esi, esi
jle 0x44b6e1
mov eax, dword [edi + 0xf8]
cmp eax, 5
je 0x44b678
cmp eax, 3
jne 0x44b6e1
mov eax, dword [edi + 0x1f0]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 1
mov esi, dword [eax]
call fcn.00405f80
push 0
lea eax, [esp + 0xc4]
mov dword [esp + 0xd0], 7
push eax
mov eax, dword [edi]
mov dword [esp + 0xc8], esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0045fc34
lea ecx, [esp + 0xc0]
call fcn.00405f80
mov ecx, dword [edi + 0x2f4]
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
call fcn.0046edc7
jmp case.default.0x44b5da
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x43c], 0
je 0x44b73f
mov ecx, dword [edi + 0x440]
call fcn.0041fb34
test edx, edx
jl 0x44b73f
jg 0x44b72c
cmp eax, dword [edi + 0x43c]
jb 0x44b73f
mov eax, dword [edi + 0x448]
test eax, eax
je 0x44b2d8
jmp 0x44b2c7
mov eax, dword [edi + 0xf8]
xor esi, esi
mov byte [esp + 0xb], 0
mov dword [esp + 0x10], esi
cmp eax, 8
jne 0x44b77d
lea eax, [esp + 0xb]
push eax
lea ecx, [edi + 0x42c]
lea edx, [esp + 0x14]
call fcn.0046d8f2
add esp, 4
cmp byte [esp + 0xb], 1
jne case.default.0x44b5da
mov esi, dword [esp + 0x10]
jmp 0x44b786
cmp eax, 9
jne case.default.0x44b5da
mov ecx, dword [edi + 0x448]
mov eax, 0xcccccccc
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x44b7df
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x74], 0x103
jne 0x44b7c5
push 0
push dword [edi + 0x448]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne case.default.0x44b5da
push dword [edi + 0x448]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x74]
mov dword [edi + 0x448], 0
mov ecx, dword [edi]
add ecx, 4
cmp dword [edi + 0xf8], 8
jne 0x44b814
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
test esi, esi
jns 0x44b7ff
fadd qword [0x4c7f60]
push ecx
mov ecx, dword [ecx]
lea eax, [esp + 0x14]
push eax
add ecx, edi
fstp qword [esp + 0x18]
call fcn.00487dd7
jmp 0x44b820
mov ecx, dword [ecx]
push 0
push eax
add ecx, edi
call fcn.0041f62c
push dword [edi + 0x2f4]
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x44b5da
push ecx
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0041f5e8
jmp 0x40d566
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x150]
push eax
call esi
test eax, eax
jg 0x44b861
jmp 0x40d583