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

Disassembly:
push 0xffffffffffffffff
push 0x58cda0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, ecx
lea eax, [ebx + 0x520]
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10]
xor ebp, ebp
push 0x5e0b58
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x5304f2
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x5304f2
cmp dword [eax + 0x15c], ebp
je 0x5304f2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea edi, [ebx + 0x9e]
lea ecx, [esp + 0x1c]
push edi
push str._MARK_
push str._s_s
push ecx
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_4
lea ebx, [esi + 0x618]
mov ecx, ebx
call fcn.004b2e00
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x5304e4
push eax
mov ecx, ebx
call sub.MFC42.DLL_CTreeCtrl::GetItemData
test eax, eax
jne 0x5304e4
lea ecx, [esp + 0x18]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x18]
lea ecx, [esi + 0x694]
push eax
push edi
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CMapStringToString::Lookup
test eax, eax
je 0x530469
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jl 0x530469
cmp eax, dword [esi + 0x688]
jge 0x530469
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 0x684]
shl edx, 6
mov eax, dword [eax + edx + 0x1b0]
mov ebp, eax
and ebp, reloc.OLEAUT32.dll_VariantInit
jns 0x53045e
dec ebp
or ebp, 0xfffffff8
inc ebp
cdq
and edx, 7
add eax, edx
mov ebx, eax
sar ebx, 3
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x638]
push ecx
push 1
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
je 0x5304d6
push edi
lea ecx, [esi + 0x618]
call sub.MFC42.DLL_CTreeCtrl::GetItemData
test eax, eax
je 0x5304d6
push edi
lea ecx, [esi + 0x618]
call sub.MFC42.DLL_CTreeCtrl::GetItemData
push ebx
push ebp
push eax
mov eax, dword [esp + 0x40]
push eax
mov ecx, esi
call fcn.0052d830
test eax, eax
jl 0x5304d6
mov ecx, dword [esi + 0x638]
push edi
push 1
push 0x110a
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x530488
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x1c]
jmp 0x53061c
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_4
lea ebx, [esi + 0x618]
mov ecx, ebx
call fcn.004b2e00
mov edi, eax
cmp edi, ebp
je 0x530621
push edi
mov ecx, ebx
call sub.MFC42.DLL_CTreeCtrl::GetItemData
test eax, eax
jne 0x530621
lea ecx, [esp + 0x20]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi + 0x78]
mov byte [esp + 0x2c], 3
test eax, eax
je 0x5305aa
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [eax + 0x5ec0]
call sub.MFC42.DLL_CMapStringToString::Lookup
test eax, eax
je 0x5305aa
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jl 0x5305aa
mov ecx, dword [esi + 0x78]
cmp eax, dword [ecx + 0x5e00]
jge 0x5305aa
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + 0x5dfc]
shl edx, 6
mov eax, dword [eax + edx + 0x1b0]
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x53059f
dec ebx
or ebx, 0xfffffff8
inc ebx
cdq
and edx, 7
add eax, edx
mov ebp, eax
sar ebp, 3
mov ecx, dword [esi + 0x638]
push edi
push 1
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
je 0x530613
push edi
lea ecx, [esi + 0x618]
call sub.MFC42.DLL_CTreeCtrl::GetItemData
test eax, eax
je 0x530613
push edi
lea ecx, [esi + 0x618]
call sub.MFC42.DLL_CTreeCtrl::GetItemData
mov edx, dword [esp + 0x34]
push ebp
push ebx
push eax
push edx
mov ecx, esi
call fcn.0052d830
test eax, eax
jl 0x530613
mov eax, dword [esi + 0x638]
push edi
push 1
push 0x110a
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x5305c5
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4