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

Disassembly:
push 0xffffffffffffffff
push 0x490c6a
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
lea esi, [esp + 0x2c]
mov dword [esp + 0x78], edi
mov dword [esp + 0x18], edi
call fcn.004013e0
lea ecx, [esp + 0x5c]
call dword [0x497e20]
lea ecx, [esp + 0x14]
call dword [0x497e20]
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x84]
cmp dword [eax - 0xc], edi
jne 0x47f5df
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x5c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], vtable.ATL::CImage.0
cmp eax, edi
je 0x47f5c6
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], 0xffffffff
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4c], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00401330
lea ecx, [esp + 0x84]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x47f8f9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ebp, dword [esp + 0x80]
mov ecx, dword [ebp + 0x84]
sub ecx, dword [ebp + 0x80]
add ebp, 0x74
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x47f625
cmp ebx, 0xffffffff
jne 0x47f728
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp + 0x10]
jbe 0x47f633
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebp]
mov edi, ebx
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x47f646
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp]
test esi, esi
je 0x47f651
cmp esi, eax
je 0x47f657
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x47f84b
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x47f68e
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47f674
call ebx
cmp dword [edi + 0x14], 0
je 0x47f696
test esi, esi
jne 0x47f692
call ebx
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47f689
call ebx
add edi, 0x50
jmp 0x47f638
mov eax, dword [esi]
jmp 0x47f66d
mov eax, dword [esi]
jmp 0x47f682
mov ebx, dword [esp + 0x84]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x47f718
call ebp
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47f6b2
call ebp
push ebx
lea ecx, [edi + 0x10]
push ecx
call fcn.004016b0
test esi, esi
jne 0x47f71c
call ebp
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47f6cb
call ebp
push 0x4a8120
lea ecx, [esp + 0x18]
mov dword [edi + 0x4c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x47f6fb
test esi, esi
jne 0x47f720
call ebp
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x47f6f4
call ebp
mov dword [edi + 0x4c], 1
test esi, esi
jne 0x47f724
call ebp
cmp edi, dword [esi + 0x10]
jb 0x47f708
call ebp
lea edx, [esp + 0x84]
push edx
lea ecx, [edi + 0x40]
jmp 0x47f83d
mov eax, dword [esi]
jmp 0x47f6ab
mov eax, dword [esi]
jmp 0x47f6c4
mov eax, dword [esi]
jmp 0x47f6ed
mov esi, dword [esi]
jmp 0x47f701
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47f749
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebp + 0xc]
lea eax, [ebx + ebx*4]
shl eax, 4
add edi, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x80], eax
call fcn.0047f910
cmp dword [esp + 0x30], 0
je 0x47f798
mov edi, ebx
mov esi, ebp
call fcn.0047fb90
add eax, 0x10
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], 0xffffffff
mov byte [eax + 0x1d], cl
mov byte [eax + 0x1c], cl
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x84]
mov eax, 0x66666667
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x47f7c0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x80]
push esi
lea ecx, [eax + edx + 0x10]
push ecx
call fcn.004016b0
push 0x4a8120
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
mov edi, ebx
mov esi, ebp
test eax, eax
jne 0x47f7fa
call fcn.0047fb90
mov dword [eax + 0x4c], 1
jmp 0x47f806
call fcn.0047fb90
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47f827
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x84]
push ecx
lea ecx, [eax + edx + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x5c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x2c], vtable.ATL::CImage.0
cmp eax, edi
je 0x47f8a2
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], 0xffffffff
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4c], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4bc760
call esi
sub dword [0x4bc778], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x47f8e1
push 0x4bc760
call esi
mov eax, dword [0x4bc75c]
cmp eax, edi
je 0x47f8d4
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x4bc760
mov dword [0x4bc75c], edi
call ebx
push 0x4bc760
call ebx
lea ecx, [esp + 0x84]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8