Function at 0x100047a7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.10012ae0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2054], eax
cmp dword [ebp - 0x2054], 3
ja case.default.0x100047cc
mov ecx, dword [ebp - 0x2054]
jmp dword [ecx*4 + 0x10004a98]
push 0xff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003cc7
add esp, 0xc
jmp case.default.0x100047cc
push ecx
mov ecx, esp
lea edx, [ebp + 0x14]
push edx
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003bd9
jmp case.default.0x100047cc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d1d
add esp, 8
jmp case.default.0x100047cc
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call fcn.10003e1b
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2058], edx
cmp dword [ebp - 0x2058], 0
je 0x10004859
cmp dword [ebp - 0x2058], 1
je 0x10004884
cmp dword [ebp - 0x2058], 2
je 0x10004893
jmp 0x10004a8c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [0x100191ec], ecx
cmp dword [0x100191ec], 0x3ea
je 0x1000487f
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10004a8c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [0x100191e8], eax
jmp 0x10004a8c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d1d
add esp, 8
mov eax, dword [0x100191e8]
imul eax, eax, 0x18
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x202c], 0
mov ecx, dword [ebp - 0x2030]
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x2048], eax
mov edx, dword [ebp - 0x2048]
mov dword [ebp - 0x202c], edx
mov eax, dword [ebp - 0x2030]
push eax
push 0
mov ecx, dword [ebp - 0x202c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2028]
call fcn.1000c940
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2030]
push ecx
mov edx, dword [ebp - 0x202c]
push edx
lea ecx, [ebp - 0x2028]
call fcn.1000c350
mov eax, dword [0x100191e8]
imul eax, eax, 0x18
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x204c], eax
mov ecx, dword [ebp - 0x204c]
mov dword [0x1001a3cc], ecx
mov edx, dword [0x100191e8]
imul edx, edx, 0x18
push edx
push 0
mov eax, dword [0x1001a3cc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2030]
push ecx
mov edx, dword [ebp - 0x202c]
push edx
mov eax, dword [0x1001a3cc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x2034], 0
jmp 0x10004994
mov ecx, dword [ebp - 0x2034]
add ecx, 1
mov dword [ebp - 0x2034], ecx
mov edx, dword [ebp - 0x2034]
cmp edx, dword [0x100191e8]
jge 0x10004a5e
lea ecx, [ebp - 0x2038]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x203c]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebp - 0x2034]
imul eax, eax, 0x18
mov ecx, dword [0x1001a3cc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x2040], edx
cmp dword [ebp - 0x2040], 0
jge 0x100049eb
mov eax, dword [ebp - 0x2040]
neg eax
mov dword [ebp - 0x2040], eax
mov ecx, dword [ebp - 0x2040]
push ecx
push 0x100180f0
lea edx, [ebp - 0x2038]
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [ebp - 0x2034]
push eax
push 0x100180f8
lea ecx, [ebp - 0x203c]
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x203c]
call fcn.1000c2f0
push eax
lea ecx, [ebp - 0x2038]
call fcn.1000c2f0
push eax
mov ecx, 0x100191c8
call fcn.1000c320
lea ecx, [ebp - 0x203c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2038]
call sub.MFC42u.DLL_CString::CString
jmp 0x10004985
cmp dword [ebp - 0x202c], 0
je 0x10004a8c
mov edx, dword [ebp - 0x202c]
mov dword [ebp - 0x2050], edx
mov eax, dword [ebp - 0x2050]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x202c], 0
lea ecx, [ebp + 0x14]
call sub.MFC42u.DLL_CString::CString
mov esp, ebp
pop ebp
ret