Function at 0x476420
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a03fe
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4e2e58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80
lea eax, [ebp - 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xbc]
sub ecx, 1
mov dword [ebp - 0xbc], ecx
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
push 0x5c
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_12697]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0xffffffff
jne 0x4764ec
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0x80
jae 0x4764cd
jmp 0x4764d2
call fcn.00498f50
mov edx, dword [ebp - 0xc4]
mov byte [ebp + edx - 0x90], 0
mov dword [ebp - 0xbc], 0
jmp 0x476519
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0x80
jae 0x476506
jmp 0x47650b
call fcn.00498f50
mov ecx, dword [ebp - 0xc0]
mov byte [ebp + ecx - 0x90], 0
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 3
ja case.default.0x476541
mov ecx, dword [ebp - 0xc8]
jmp dword [ecx*4 + 0x476898]
push str.Seal.tpl
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
jmp case.default.0x476541
push str.BstCard.tpl
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
jmp case.default.0x476541
push str.NameCard.tpl
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
jmp case.default.0x476541
push str.OfficeCd.tpl
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1524]
mov edx, dword [ebp - 0xbc]
movsx eax, byte [ebp + edx - 0x90]
cmp eax, 0x5c
jne 0x4765f8
push 0x4b3978
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00413a60
add esp, 0xc
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1521]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
jmp 0x476684
push str.Template
push 0x5c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.004139b0
add esp, 0xc
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.00413a60
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x104]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1521]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
lea ecx, [ebp - 0x144]
call sub.mfc120.dll_Ordinal_503
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
lea ecx, [ebp - 0x144]
call sub.mfc120.dll_Ordinal_4662
test eax, eax
jne 0x4766c0
push 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0xb8]
push eax
push 0x5c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.004139b0
add esp, 0xc
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xf8]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.004138f0
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xd0]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1521]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd8]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_500
mov byte [ebp - 4], 7
push 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
lea ecx, [ebp - 0x144]
call sub.mfc120.dll_Ordinal_4662
test eax, eax
jne 0x47683c
push 0
push 0x1002
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_11782
test eax, eax
jne 0x4767e2
mov dword [ebp - 0xe8], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_1137
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call sub.mfc120.dll_Ordinal_1139
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0xe8]
jmp 0x47687d
mov dword [ebp - 0xb4], 0x64
push 0x4b3990
lea edx, [ebp - 0xb0]
push edx
call sub.MSVCR120.dll_strcpy
add esp, 8
push 0x24
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_14379
mov dword [ebp - 0x110], 0x2c
mov dword [ebp - 0x114], 0
push 8
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_14379
mov dword [ebp - 0xf0], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x128]
call sub.mfc120.dll_Ordinal_1137
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call sub.mfc120.dll_Ordinal_1139
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499036
mov esp, ebp
pop ebp
ret