Function at 0x416640
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4224cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x144]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
xor edi, edi
push str.ExceptionRecord
mov dword [esp + 0x148], eax
mov dword [esp + 0x18], edi
call esi
mov ebx, eax
push str.ModuleName
mov dword [esp + 0x38], ebx
call esi
push str.ExceptionCode
mov dword [esp + 0x34], eax
call esi
push str.ExceptionDescription
mov dword [esp + 0x30], eax
call esi
push 0x429e2c
mov dword [esp + 0x40], eax
call esi
mov ebp, eax
mov dword [esp + 0x38], ebp
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x158]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push ecx
push edi
push ebx
sub esp, 0x10
mov dword [esp + 0x16c], edi
mov ecx, esp
mov word [esp + 0x34], 3
mov edi, dword [esp + 0x34]
mov dword [ecx], edi
mov edi, dword [esp + 0x38]
mov dword [ecx + 4], edi
mov eax, 1
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x174]
push ecx
call dword [edx + 0xe0]
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x42926c
push eax
call dword [edx]
test eax, eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jl 0x416a66
push 0x100
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x416753
sub eax, ecx
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, 0x438e18
call fcn.00401960
lea ecx, [esp + 0x40]
push ecx
mov word [esp + 0x1c], 8
call fcn.004160e0
mov ebx, dword [esp + 0x1c]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0x2c]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x34]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x40]
push ecx
push eax
call dword [edx + 0xb4]
push ebp
call edi
mov edx, dword [esp + 0x15c]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x14]
push 0x429e28
push ecx
call fcn.00401ab0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, 0x438e1c
call fcn.004035b0
lea ecx, [esp + 0x10]
mov word [esp + 0x18], 8
call fcn.004163d0
mov ebx, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [esp + 0x2c]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x34]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebx
mov edx, dword [esp + 0x3c]
push edx
push eax
call dword [ecx + 0xb4]
push ebp
call edi
mov eax, dword [esp + 0x15c]
mov eax, dword [eax]
cmp eax, 0xc000008d
mov word [esp + 0x18], 8
ja 0x41693f
je 0x416931
cmp eax, 0xc0000006
ja 0x4168cd
je 0x4168bf
cmp eax, reloc.WSOCK32.dll_closesocket
ja 0x416891
je 0x416883
cmp eax, 0x80000001
je 0x416875
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne case.0x416950.1073741673
push str.EXCEPTION_DATATYPE_MISALIGNMENT
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_GUARD_PAGE
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_BREAKPOINT
call esi
mov esi, eax
jmp 0x4169ca
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
je 0x4168b1
cmp eax, 0xc0000005
jne case.0x416950.1073741673
push str.EXCEPTION_ACCESS_VIOLATION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_SINGLE_STEP
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_IN_PAGE_ERROR
call esi
mov esi, eax
jmp 0x4169ca
add eax, 0x3ffffff8
cmp eax, 0x84
ja case.0x416950.1073741673
movzx ecx, byte [eax + 0x416b00]
jmp dword [ecx*4 + 0x416ae8]
push str.EXCEPTION_ARRAY_BOUNDS_EXCEEDED
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_ILLEGAL_INSTRUCTION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_NONCONTINUABLE_EXCEPTION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_INVALID_DISPOSITION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_INVALID_HANDLE
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_DENORMAL_OPERAND
call esi
mov esi, eax
jmp 0x4169ca
add eax, 0x3fffff72
cmp eax, 0x6f
ja case.0x416950.1073741673
movzx edx, byte [eax + 0x416bb4]
jmp dword [edx*4 + 0x416b88]
push str.EXCEPTION_FLT_DIVIDE_BY_ZERO
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_INEXACT_RESULT
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_INVALID_OPERATION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_OVERFLOW
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_STACK_CHECK
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_FLT_UNDERFLOW
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_INT_DIVIDE_BY_ZERO
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_INT_OVERFLOW
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_PRIV_INSTRUCTION
call esi
mov esi, eax
jmp 0x4169ca
push str.EXCEPTION_STACK_OVERFLOW
call esi
mov esi, eax
jmp 0x4169ca
mov esi, str.EXCEPTION_UNKNOWN
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
mov ebp, dword [esp + 0x2c]
mov dword [edx + 4], ebp
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebx
mov edx, dword [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xb4]
push esi
call edi
mov eax, dword [esp + 0x15c]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x429e28
push edx
call fcn.00401ab0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, 0x438e20
call fcn.004035b0
lea ecx, [esp + 0x10]
mov word [esp + 0x18], 8
call fcn.004163d0
mov ebx, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [esp + 0x34]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x48]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebp
mov dword [edx + 8], esi
push eax
mov dword [edx + 0xc], ebx
call dword [ecx + 0xb4]
push esi
call edi
mov ebx, dword [esp + 0x34]
push ebx
call edi
mov eax, dword [esp + 0x30]
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
push ebp
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416a90
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
xor ecx, dword [esp + 0x14c]
pop ebp
pop ebx
add esp, 0x144
jmp fcn.0041fbeb