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

Disassembly:
sub esp, 0x50c
push ebx
mov ebx, dword [esp + 0x514]
push ebp
push edi
push str._t_Rising_Unhandled_Exception_Collection_System__r_n_r_n
push ebx
call fcn.00410550
mov eax, str.a_Microsoft_C_Exception
mov ecx, 0xe06d7363
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x528]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xec], ecx
add esp, 8
mov ecx, dword [eax]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], str.an_Unknown_exception_type
mov dword [esp + 0x24], 0x40010005
mov dword [esp + 0x28], str.a_Control_C
mov dword [esp + 0x2c], 0x40010008
mov dword [esp + 0x30], str.a_Control_Break
mov dword [esp + 0x34], 0x80000002
mov dword [esp + 0x38], str.a_Datatype_Misalignment
mov dword [esp + 0x3c], 0x80000003
mov dword [esp + 0x40], str.a_Breakpoint
mov dword [esp + 0x44], 0xc0000005
mov dword [esp + 0x48], str.an_Access_Violation
mov dword [esp + 0x4c], 0xc0000006
mov dword [esp + 0x50], str.an_In_Page_Error
mov dword [esp + 0x54], 0xc0000017
mov dword [esp + 0x58], str.a_No_Memory
mov dword [esp + 0x5c], 0xc000001d
mov dword [esp + 0x60], str.an_Illegal_Instruction
mov dword [esp + 0x64], 0xc0000025
mov dword [esp + 0x68], str.a_Noncontinuable_Exception
mov dword [esp + 0x6c], 0xc0000026
mov dword [esp + 0x70], str.an_Invalid_Disposition
mov dword [esp + 0x74], 0xc000008c
mov dword [esp + 0x78], str.a_Array_Bounds_Exceeded
mov dword [esp + 0x7c], 0xc000008d
mov dword [esp + 0x80], str.a_Float_Denormal_Operand
mov dword [esp + 0x84], 0xc000008e
mov dword [esp + 0x88], str.a_Float_Divide_by_Zero
mov dword [esp + 0x8c], 0xc000008f
mov dword [esp + 0x90], str.a_Float_Inexact_Result
mov dword [esp + 0x94], 0xc0000090
mov dword [esp + 0x98], str.a_Float_Invalid_Operation
mov dword [esp + 0x9c], 0xc0000091
mov dword [esp + 0xa0], str.a_Float_Overflow
mov dword [esp + 0xa4], 0xc0000092
mov dword [esp + 0xa8], str.a_Float_Stack_Check
mov dword [esp + 0xac], 0xc0000093
mov dword [esp + 0xb0], str.a_Float_Underflow
mov dword [esp + 0xb4], 0xc0000094
mov dword [esp + 0xb8], str.an_Integer_Divide_by_Zero
mov dword [esp + 0xbc], 0xc0000095
mov dword [esp + 0xc0], str.an_Integer_Overflow
mov dword [esp + 0xc4], 0xc0000096
mov dword [esp + 0xc8], str.a_Privileged_Instruction
mov dword [esp + 0xcc], 0xc00000fd
mov dword [esp + 0xd0], str.a_Stack_Overflow
mov dword [esp + 0xd4], 0xc0000142
mov dword [esp + 0xd8], str.a_DLL_Initialization_Failed
xor ebp, ebp
lea eax, [esp + 0x1c]
cmp ecx, dword [eax]
je 0x40fd77
inc ebp
add eax, 8
cmp ebp, 0x1a
jb 0x40fd68
jmp 0x40fd7c
cmp ebp, 0x1a
jb 0x40fd7e
xor ebp, ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x311]
mov byte [esp + 0x310], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x210]
push str.Unknown
push ecx
stosb byte es:[edi], al
call esi
lea edx, [esp + 0x10c]
push str.Unknown
push edx
call esi
lea eax, [esp + 0x314]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x314]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40fe2c
inc eax
lea edx, [esp + 0x10c]
push eax
push edx
call esi
mov edi, dword [esp + 0x524]
lea eax, [esp + 0xf0]
push 0x1c
push eax
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fe8d
mov eax, dword [esp + 0xf4]
lea edx, [esp + 0x314]
push 0x206
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40fe8d
lea ecx, [esp + 0x314]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40fe8d
inc eax
lea edx, [esp + 0x210]
push eax
push edx
call esi
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
lea ecx, [esp + 0x210]
push eax
mov eax, dword [esp + ebp*8 + 0x28]
push ecx
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
push str._s_caused__s__0x_08x___r_n_tin_module__s_Address_at__08x._r_n
push ebx
call fcn.00410550
add esp, 0x1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
pop esi
je 0x40ff3f
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test eax, eax
je 0x40ff3f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
and ecx, 0xffff
and eax, 0xffff
mov edx, ecx
and edx, 0x1f
shl edx, 1
push edx
mov edx, ecx
shr edx, 5
and edx, 0x3f
shr ecx, 0xb
push edx
push ecx
mov ecx, eax
mov edx, eax
shr ecx, 9
add ecx, 0x7bc
and edx, 0x1f
shr eax, 5
push ecx
and eax, 0xf
push edx
push eax
push str.Error_occurred_at_:__d__d__d__02d:_02d:_02d__r_n
push ebx
call fcn.00410550
add esp, 0x20
push 0x424354
push ebx
call fcn.00410550
add esp, 8
push edi
push str.Exception_Information_:_0x_08x__r_n
push ebx
call fcn.00410550
mov eax, dword [edi + 4]
mov ecx, dword [edi]
add esp, 0xc
push eax
push ecx
push str.Code_:_0x_08x__t_t_Flags_:_0x_08x__r_n
push ebx
call fcn.00410550
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
add esp, 0x10
push edx
push eax
push str.Param_:_0x_08x__t_t_Address_:_0x_08x__r_n
push ebx
call fcn.00410550
add esp, 0x10
push 0x424354
push ebx
call fcn.00410550
add esp, 8
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x50c
ret