Function at 0x412940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4554d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [esi + 4]
add eax, 0xb4
cmp dword [eax + 0x14], 0x10
jb 0x41297f
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x60]
mov ecx, 0x46736c
push eax
push 0x14
call fcn.00408250
mov eax, dword [esi + 4]
add esp, 8
add eax, 0xcc
cmp dword [eax + 0x14], 0x10
jb 0x4129aa
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x60]
mov ecx, 0x467380
push eax
push 0x15
call fcn.00408250
add esp, 8
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
push 0x466052
call fcn.004016f0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 2
mov esi, dword [esi + 4]
add esi, 0xcc
cmp dword [esi + 0x14], 0x10
jb 0x412a27
mov esi, dword [esi]
push 0x28
call fcn.0043aab7
mov edi, eax
add esp, 4
test edi, edi
je 0x412a73
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
test esi, esi
je 0x412a5f
nop word [eax + eax]
mov al, byte [esi]
test al, al
je 0x412a5f
cmp al, 0x20
ja 0x412a5f
add esi, 1
jne 0x412a50
mov edx, esi
mov ecx, edi
call fcn.00410010
test eax, eax
jne 0x412a8c
mov ecx, edi
call fcn.0040f640
push 0x28
mov edx, str.CBusPrinter3::BusParser
mov ecx, 0x467394
call fcn.004080b0
add esp, 4
jmp 0x412b67
mov esi, dword [edi + 8]
test esi, esi
je 0x412a73
mov ecx, dword [esi + 0x20]
mov edx, str.mname
call fcn.0040f5b0
test eax, eax
je 0x412aac
mov esi, dword [esi]
test esi, esi
jne 0x412a93
jmp 0x412a73
test esi, esi
je 0x412a73
cmp dword [esi + 0xc], 4
jne 0x412a73
mov edx, dword [esi + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412ac0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004016f0
mov edx, str.ename
mov ecx, edi
call fcn.00410d70
test eax, eax
je 0x412a73
cmp dword [eax + 0xc], 4
jne 0x412a73
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412af1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004016f0
mov edx, str.size
mov ecx, edi
call fcn.00410d70
test eax, eax
je 0x412a73
cmp dword [eax + 0xc], 3
jne 0x412a73
mov edi, dword [eax + 0x14]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x412bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, str.OpenFileMapping1_d
push eax
push 0x2f
call fcn.00408250
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x412b9f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e24
push edx
push ecx
call fcn.0041d9cd
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x412d42
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e29
jmp 0x412d38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, str.OpenFileMapping2_d
push eax
push 0x33
call fcn.00408250
mov eax, dword [ebp - 0x6c]
add esp, 8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x412c42
call esi
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, str.MapViewOfFile_d
push eax
push 0x38
jmp 0x412b5f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x412c7c
call esi
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, str.OpenEvent_d
push eax
push 0x3f
jmp 0x412b5f
call esi
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, str.OpenEvent1_d
push eax
push 0x43
call fcn.00408250
mov eax, dword [ebp - 0x60]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
lea eax, [edi + 1]
push eax
call fcn.0041da0c
add esp, 4
mov esi, eax
test edi, edi
je 0x412ced
test esi, esi
jne 0x412cdf
call fcn.00438a32
mov dword [eax], 0x16
call fcn.00438959
jmp 0x412ced
mov eax, dword [ebp - 0x68]
push edi
push eax
push esi
call fcn.00434e60
add esp, 0xc
mov byte [esi + edi], 0
mov edi, dword [ebp - 0x64]
push edi
push esi
push 0x402
push dword [0x4734c0]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x412d28
push 0x18
lea ecx, [edi + 0xc]
push 0x46740c
call fcn.004016f0
push esi
call fcn.0041d9fe
add esp, 4
jmp 0x412b67
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x412b67
push edx
push ecx
call fcn.0041d9cd
add esp, 8
mov esi, dword [ebp - 0x64]
add esi, 0xc
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xf
mov eax, esi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 0x10
jb 0x412d64
mov eax, dword [esi]
mov dword [ebp - 0x5c], eax
mov edx, str.CBusPrinter3::BusParser
lea eax, [ebp - 0x5c]
mov ecx, 0x467428
push eax
push 0x59
call fcn.00408250
mov eax, dword [ebp - 0x68]
add esp, 8
test eax, eax
je 0x412d8d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x412d9d
push eax
call edi
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x412da7
push eax
call edi
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 8]
test eax, eax
je 0x412db4
push eax
call edi
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
add ecx, 0xcc
cmp ecx, esi
je 0x412dd7
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x412dce
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.004016f0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x412e07
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412dfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e24
push edx
push ecx
call fcn.0041d9cd
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret
call fcn.00438969
call fcn.00438969
int3