Function at 0x464600
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x540cc0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x1f8]
push eax
call fcn.00430940
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0
push 0x50f934
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x1fc]
push eax
call fcn.00407f90
add esp, 0xc
mov dword [ebp - 0x228], eax
push 0
mov ecx, dword [ebp - 0x228]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1fc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp dword [ebp + 8], 0
je 0x464d9d
push 0
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 8]
xor edx, edx
push edx
push ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x120
call fcn.00468da0
push 0x10
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0x120
call fcn.00468d00
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp + 8]
cmp ecx, 0x103
jbe 0x464707
mov dword [ebp - 0x22c], 0x103
jmp 0x464716
mov edx, dword [ebp - 0x128]
sub edx, dword [ebp + 8]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x120
call fcn.00468d00
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00464dc0
add esp, 8
push 0xa
lea ecx, [ebp - 0x11c]
push ecx
push 0x50f93c
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x464d8f
lea ecx, [ebp - 0x180]
call dword [0x502480]
mov dword [ebp - 4], 1
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x170]
push ecx
call fcn.00461400
push eax
push 0x50f948
lea edx, [ebp - 0x180]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [ebp - 0x174]
call sub.MFC71.DLL_CFile::CFile
mov byte [ebp - 4], 2
push 0x2800
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x464817
mov dword [ebp - 0x204], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.004f234e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x204]
jmp 0x464da2
push 0
push 0x1001
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x174]
call sub.MFC71.DLL_CFile::Open
test eax, eax
je 0x464933
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x124]
jae 0x464928
mov edx, dword [ebp - 0x124]
sub edx, dword [ebp - 0x190]
cmp edx, 0x2800
jbe 0x46488e
mov dword [ebp - 0x230], 0x2800
jmp 0x4648a0
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x190]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x18c], ecx
push 0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x128]
add edx, dword [ebp - 0x190]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x120
call fcn.00468da0
lea ecx, [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0x120
call fcn.00468ff0
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x164]
push edx
lea ecx, [ebp - 0x174]
call sub.MFC71.DLL_CFile::Write
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0x188]
mov dword [ebp - 0x190], eax
jmp 0x46485c
lea ecx, [ebp - 0x174]
call sub.MFC71.DLL_CFile::Close
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x208]
push edx
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp - 0x164], 0
mov ecx, dword [ebp - 0x21c]
add ecx, 0x130
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
movzx eax, al
test eax, eax
jne 0x4649a3
mov ecx, dword [ebp - 0x21c]
add ecx, 0x134
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
movzx ecx, al
test ecx, ecx
jne 0x4649a3
mov ecx, dword [ebp - 0x21c]
add ecx, 0x138
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
movzx edx, al
test edx, edx
je 0x4649da
mov dword [ebp - 0x20c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.004f234e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x20c]
jmp 0x464da2
mov eax, dword [ebp - 0x21c]
movzx ecx, word [eax + 0x198]
push ecx
mov edx, dword [ebp - 0x21c]
movzx eax, word [edx + 0x196]
push eax
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ecx + 0x194]
push edx
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 0xdbba0
idiv ecx
add edx, 0x186a0
push edx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x178]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x174]
push edx
push 0x50f95c
mov eax, dword [ebp - 0x21c]
add eax, 0x144
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x20
lea ecx, [ebp - 0x178]
call dword [0x502480]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x144]
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x130]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x134]
push edx
push 0x50f974
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x18
mov dword [ebp - 0x17c], 0x64
mov dword [ebp - 0x184], 0x8e
lea ecx, [ebp - 0x160]
call dword [0x502480]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x170]
push eax
call fcn.00461400
push eax
push 0x50f988
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [ebp - 0x15c]
call fcn.00402670
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00405f30
lea ecx, [ebp - 0x15c]
call fcn.00405f10
movzx edx, al
test edx, edx
jne 0x464b83
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x214]
call fcn.0041cf10
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call sub.pmc.dll_ZooImgShelf
add esp, 0xc
push 0x5219a0
lea ecx, [ebp - 0x160]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00407740
jmp 0x464cfb
lea ecx, [ebp - 0x1c4]
call fcn.00402670
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00405f30
lea ecx, [ebp - 0x1c4]
call fcn.00405f10
movzx edx, al
test edx, edx
je 0x464c31
mov dword [ebp - 0x218], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c4]
call fcn.00401e50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00401e50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.004f234e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x218]
jmp 0x464da2
lea ecx, [ebp - 0x1f4]
call fcn.00402670
mov byte [ebp - 4], 7
push 0
push 0x18
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x1f4]
call fcn.004069c0
lea ecx, [ebp - 0x1f4]
call fcn.00406be0
push eax
call sub.MFC71.DLL_CDC::FromHandle
mov dword [ebp - 0x194], eax
push 4
mov ecx, dword [ebp - 0x194]
call sub.MFC71.DLL_CDC::SetStretchBltMode
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x17c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x194]
call fcn.0041cfc0
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00468e50
lea ecx, [ebp - 0x1f4]
call fcn.00406ca0
push 0x521904
lea ecx, [ebp - 0x160]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00407740
lea ecx, [ebp - 0x1f4]
call fcn.00401f20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1f4]
call fcn.00401e50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c4]
call fcn.00401e50
push 0
lea ecx, [ebp - 0x178]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x160]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.004dd920
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 0x11c], eax
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00401e50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.004f234e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [ebp - 0x120]
mov dword [ebp + 8], edx
jmp 0x4646a9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f2f91
mov esp, ebp
pop ebp
ret 0xc