Function at 0x499300
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x14c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push 1
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
call sym.convertifd.exe_IpWait
mov eax, dword [sym.convertifd.exe_i_window]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
add esp, 4
push eax
call ebx
test eax, eax
je 0x49976c
movzx ecx, word [0x6a13b8]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push ecx
call edi
mov ebp, dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, eax
call ebp
test esi, esi
je 0x499638
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call sym.convertifd.exe_PushDocVars
test eax, eax
jne 0x4993a1
push 0xfffffffffffffff1
call sym.convertifd.exe_IpMessage
mov dword [esp + 0x14], 0
jmp 0x499766
mov ebx, 1
lea eax, [esp + 0x54]
mov dword [esp + 0x14], ebx
call fcn.00498d90
test eax, eax
je 0x499769
xor ebp, ebp
cmp dword [esp + 0x160], ebp
jne 0x4993cb
call sym.convertifd.exe_ClearPickList
mov eax, dword [0x6a2d00]
lea esi, [eax + 0x70]
mov ecx, 0x6e
mov edi, 0x6a2710
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x184], ebp
mov eax, dword [0x6a2d00]
mov dword [eax + 0x14c], ebp
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x150], ebp
mov edx, dword [0x6a2d00]
mov dword [edx + 0x158], ebp
mov eax, dword [0x6a2d00]
mov dword [eax + 0x128], ebp
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x160], ebp
mov edx, dword [0x6a2d00]
mov dword [edx + 0x210], ebp
mov eax, dword [0x6a2d00]
mov dword [eax + 0x168], ebp
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x170], ebp
mov edx, dword [0x6a2d00]
mov dword [edx + 0x19c], ebp
mov eax, dword [0x6a2d00]
mov dword [eax + 0x1f4], ebp
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x1e4], ebp
mov edx, dword [0x6a2d00]
mov dword [edx + 0x1e0], ebp
cmp dword [0x6a197c], ebx
mov dword [0x6a270c], ebx
mov edi, ebx
jle 0x4995b6
mov ebx, 4
lea ebx, [ebx]
mov eax, dword [0x6a1978]
mov eax, dword [eax + edi*8 + 4]
cmp eax, ebp
jle 0x4995a2
xor ecx, ecx
cmp dword [0x6a294c], ebp
sete cl
test cl, 8
je 0x4994d7
cmp eax, 5
jne 0x4994d7
push edi
push 0x6a1978
call sym.convertifd.exe_PointToEntity
mov al, byte [eax + 8]
add esp, 8
cmp al, 1
je 0x4995a2
cmp al, bl
je 0x4995a2
xor edx, edx
cmp dword [0x6a294c], ebp
sete dl
test bl, dl
je 0x499513
mov eax, dword [0x6a1978]
cmp dword [eax + edi*8 + 4], 5
jne 0x4995a2
push edi
push 0x6a1978
call sym.convertifd.exe_PointToEntity
mov al, byte [eax + 8]
add esp, 8
cmp al, 1
je 0x499513
cmp al, bl
jne 0x4995a2
push 0x6a1978
push edi
push 0x6a2d18
call sym.convertifd.exe_CopyEntity
mov esi, eax
add esp, 0xc
cmp esi, ebp
jle 0x4995b1
push ebp
push 0x6a2d18
push esi
call sym.convertifd.exe_SetGroupListIndex
mov ecx, dword [0x6a1978]
add esp, 0xc
cmp dword [ecx + edi*8 + 4], ebx
jne 0x499555
push 1
call sym.convertifd.exe_ReLoadLogos
add esp, 4
mov edx, dword [0x6a2d18]
cmp dword [edx + esi*8 + 4], 0xb
jne 0x499590
push esi
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
add esp, 8
cmp dword [eax + 0x34], ebp
je 0x499590
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x38]
push ecx
mov ecx, dword [0x6a2d98]
push edx
push eax
push ecx
call sym.convertifd.exe_MPageAddSubformToList
add esp, 0x10
cmp dword [esp + 0x160], ebp
jne 0x4995a2
push esi
call sym.convertifd.exe_AddToPicklist
add esp, 4
add edi, 1
cmp edi, dword [0x6a197c]
jl 0x499490
mov ebx, 1
push sym.convertifd.exe_i_tmpifd
call sym.convertifd.exe_CloseIFD
add esp, 4
cmp dword [esp + 0x160], ebp
jne 0x4995e3
lea edx, [esp + 0x18]
push edx
call sym.convertifd.exe_OneTablePicked
add esp, 4
mov dword [0x6a29ec], eax
call sym.convertifd.exe_SetupPickAttributes
mov eax, dword [0x6a2d00]
add eax, 0xec
lea edx, [esp + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebx
test cl, cl
jne 0x4995f3
call sym.convertifd.exe_SetAutoFieldName
mov edx, dword [0x6a2d00]
add edx, 0xec
mov esi, 0x6a278c
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, ebx
test cl, cl
jne 0x499618
lea ecx, [esp + 0x20]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebx
add edx, ebx
test al, al
jne 0x499627
jmp 0x499769
mov eax, dword [sym.convertifd.exe_i_window]
push eax
call ebx
movzx ecx, word [0x6a13c8]
push ecx
call edi
mov edi, eax
call ebp
test edi, edi
je 0x499769
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [eax]
xor ebx, ebx
xor esi, esi
test cl, cl
je 0x499680
lea edx, [esp + 0x54]
sub edx, eax
lea ecx, [ecx]
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
add eax, 1
add esi, 1
test cl, cl
jne 0x499670
push edi
mov byte [esp + esi + 0x58], bl
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call sym.convertifd.exe_ClearPickList
mov eax, dword [0x6a2d00]
lea esi, [eax + 0x70]
mov ecx, 0x6e
mov edi, 0x6a2710
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x184], ebx
mov edx, dword [0x6a2d00]
mov dword [edx + 0x14c], ebx
mov eax, dword [0x6a2d00]
mov dword [eax + 0x150], ebx
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x158], ebx
mov edx, dword [0x6a2d00]
mov dword [edx + 0x128], ebx
mov eax, dword [0x6a2d00]
mov dword [eax + 0x160], ebx
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x210], ebx
mov edx, dword [0x6a2d00]
mov dword [edx + 0x168], ebx
mov eax, dword [0x6a2d00]
mov dword [eax + 0x1f4], ebx
mov ecx, dword [0x6a2d00]
mov dword [ecx + 0x1e4], ebx
mov edx, dword [0x6a2d00]
lea eax, [esp + 0x54]
mov dword [edx + 0x1e0], ebx
push eax
mov dword [0x6a270c], 1
call sym.convertifd.exe_LoadFIF
push 1
call sym.convertifd.exe_ReLoadLogos
add esp, 8
call sym.convertifd.exe_SomethingPicked
test eax, eax
je 0x49974d
call sym.convertifd.exe_SetupPickAttributes
jmp 0x499757
mov dword [sym.convertifd.exe_i_control], 0x26d8
lea ecx, [esp + 0x1c]
push ecx
call sym.convertifd.exe_OneTablePicked
mov dword [0x6a29ec], eax
add esp, 4
pop edi
pop esi
pop ebp
push 0
call sym.convertifd.exe_IpWait
add esp, 4
cmp dword [esp + 8], 0
pop ebx
je 0x4997aa
call sym.convertifd.exe_PopDocVars
test eax, eax
jne 0x4997aa
push 0xfffffffffffffff1
call sym.convertifd.exe_IpMessage
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00511a80
add esp, 0x14c
ret 4
mov ecx, dword [esp + 0x148]
mov eax, dword [esp]
xor ecx, esp
call fcn.00511a80
add esp, 0x14c
ret 4