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

Disassembly:
push 0xffffffffffffffff
push 0x482a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, edx
xor ebp, ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
mov eax, dword [eax]
cmp eax, ebp
push edi
mov dword [esi + 0x44], 4
jle 0x40142a
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [ecx + eax]
add eax, 4
mov dword [esi + 0x44], eax
add eax, ecx
push eax
lea ecx, [esp + 0x78]
call fcn.00414eb0
mov dword [esp + 0x6c], ebp
mov edi, dword [esi]
mov eax, dword [edi + 0x1e78]
add edi, 0x1e74
cmp eax, ebp
jne 0x4013a7
xor ecx, ecx
jmp 0x4013af
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
mov ebp, dword [edi + 8]
mov edx, ebp
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x4013e4
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
push 1
push ebp
call fcn.004103d0
add esp, 0x14
add ebp, 4
mov dword [edi + 8], ebp
jmp 0x4013f2
lea eax, [esp + 0x74]
push eax
push 1
push ebp
push edi
call fcn.0040cf30
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40141a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esi + 0x44], ebx
xor ebp, ebp
sub dword [esp + 0x14], 1
jne 0x401372
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + ecx]
add ecx, 4
xor edi, edi
cmp ebx, ebp
mov dword [esi + 0x44], ecx
jle 0x401492
nop
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1ea8]
mov ecx, dword [edx + edi*4]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x44]
cmp byte [eax + ecx], 1
jne 0x4014a7
inc ecx
mov dword [esi + 0x44], ecx
jmp 0x401460
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
mov al, byte [edx + eax]
cmp al, 2
je 0x401471
cmp al, 0xf
jne 0x40147a
mov eax, esi
call fcn.00401210
jmp 0x401460
mov eax, dword [esi + 0x3c]
mov ecx, edx
cmp byte [eax + ecx], 0xe
jne 0x401519
inc ecx
inc edi
cmp edi, ebx
mov dword [esi + 0x44], ecx
jl 0x401440
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4
push 0x1e
mov esi, 0xf
push str.Read_error:_bad_event_list__1_
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
call fcn.00415040
mov dword [esp + 0x6c], 2
lea ecx, [esp + 0x38]
call fcn.00463e85
mov byte [esp + 0x6c], 3
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], vtable.std::runtime_error.0
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
call fcn.00415510
mov byte [esp + 0x6c], 2
push 0x49aa24
lea edx, [esp + 0x3c]
push edx
call fcn.00466bcb
push 0x1e
mov esi, 0xf
push str.Read_error:_bad_event_list__2_
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
call fcn.00415040
mov ebx, 5
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x38]
call fcn.00463e85
mov byte [esp + 0x6c], 6
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], vtable.std::runtime_error.0
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
call fcn.00415510
mov byte [esp + 0x6c], bl
push 0x49aa24
lea ecx, [esp + 0x3c]
push ecx
call fcn.00466bcb
int3