Function at 0x103a599
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 2
jne 0x103a5b8
mov eax, 0x80004005
jmp 0x103a7e5
cmp dword [ebp + 0x14], 0
je 0x103a605
mov eax, dword [0x1050eac]
cmp dword [edi + 0x108], eax
je 0x103a605
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 0x14]
sub esi, eax
sub esi, dword [ebp - 4]
sub dword [ecx], ebx
add dword [ecx + 8], ebx
add dword [ecx + 0xc], eax
add dword [ecx + 4], esi
push edi
mov esi, 1
push esi
xor ebx, ebx
call fcn.0102b33b
mov edi, dword [eax + 0x14]
mov dword [ebp - 8], eax
cmp dword [0x104f67c], ebx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0xc], ecx
je 0x103a698
mov ax, word [0x1056d92]
mov dword [ebp - 4], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x24], esi
push eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0xc]
push esi
mov eax, dword [esi]
mov dword [ebp - 0x20], 0xffffffff
call dword [eax + 0xc]
test eax, eax
jne 0x103a6a7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x103a683
mov word [ebp - 0x2c], bx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x2c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
jmp 0x103a6a7
mov ebx, 0x104f668
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x10]
cmp eax, 1
jb 0x103a6c1
cmp eax, 2
jbe 0x103a746
cmp eax, 4
je 0x103a782
cmp dword [edi + 0x18], 0
jne 0x103a704
push 0x34c
push str.c:_ntprivatectoleuiole2.0_appscommonchicago..dragdrop.c
push str.Cl32Test___ansi
push str.Assert_Failure__Module:__s__file__s__line__d_r_n
push 0x1056c90
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1056c90
call esi
push str.Null_Object
call esi
push 0x104c08c
call esi
lea eax, [edi + 0x68]
push eax
call fcn.0101a8a0
push edi
call fcn.010141b0
test eax, 0x80000000
jne 0x103a7d2
push edi
call fcn.01020ab0
push dword [ebp - 0xc]
push edi
call fcn.0100e4b0
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0103ac2d
xor eax, eax
jmp 0x103a7e5
push esi
call fcn.0103a7ee
test eax, eax
je 0x103a757
mov dword [ebp - 4], 3
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x3c]
push eax
push dword [ecx]
push ebx
push dword [ebp - 4]
push edi
push dword [0x104ed84]
push esi
call fcn.01039246
mov esi, eax
test esi, esi
je 0x103a6c1
push 0x330
jmp 0x103a7ab
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x3c]
push eax
push dword [ecx]
push ebx
push dword [ebp - 4]
push edi
push dword [0x104ed84]
push esi
call fcn.0103928c
mov esi, eax
test esi, esi
je 0x103a6c1
push 0x343
push str.c:_ntprivatectoleuiole2.0_appscommonchicago..dragdrop.c
lea eax, [ebp - 0xa8]
push str.file__s__line__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0xa8]
push ecx
push esi
call fcn.0102e6d7
cmp dword [ebp - 8], 0
je 0x103a7e5
push dword [ebp - 8]
call fcn.0102b494
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10