Function at 0x404db0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42629b
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x4323e0]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push esi
push edi
mov eax, dword [0x4323e0]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
xor al, al
cmp dword [ebx + 0x34], 0
mov byte [esp + 0x13], al
je 0x40502c
cmp dword [ebx + 0x18], 0
je 0x40502c
lea eax, [ebx + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00412b40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x330], 0
call fcn.00412cf0
test al, al
je 0x40501f
cmp dword [ebx + 0x1c], 0x10
jb 0x404e44
mov eax, dword [ebx + 8]
jmp 0x404e47
lea eax, [ebx + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x405010
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x18], eax
je 0x405009
mov edx, dword [eax + 0x338]
lea esi, [edi + 0x54]
add eax, 0x338
mov ecx, 0xb5
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb5
lea esi, [esp + 0x44]
mov edi, eax
mov dword [esp + 0x44], edx
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10
cmp dword [ebx + 0x70], esi
mov byte [esp + 0x13], 1
jb 0x404ebc
mov eax, dword [ebx + 0x5c]
jmp 0x404ebf
lea eax, [ebx + 0x5c]
push edx
push eax
push str.FileMap_Write__s__FirmVersionInfo.nOrderNumber_________________0x_x__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
cmp dword [ebx + 0x70], esi
jb 0x404ee2
mov eax, dword [ebx + 0x5c]
jmp 0x404ee5
lea eax, [ebx + 0x5c]
lea edx, [esp + 0x7a]
push edx
push eax
push str.FileMap_Write__s__FirmVersionInfo.strModel______________________s__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
cmp dword [ebx + 0x70], esi
jb 0x404f0c
mov eax, dword [ebx + 0x5c]
jmp 0x404f0f
lea eax, [ebx + 0x5c]
lea ecx, [esp + 0x48]
push ecx
push eax
push str.FileMap_Write__s__FirmVersionInfo.strSerialNumber_______________s__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
cmp dword [ebx + 0x70], esi
jb 0x404f36
mov eax, dword [ebx + 0x5c]
jmp 0x404f39
lea eax, [ebx + 0x5c]
lea edx, [esp + 0x17a]
push edx
push eax
push str.FileMap_Write__s__FirmVersionInfo.strSpec_______________________s__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x14
cmp dword [ebx + 0x70], esi
jb 0x404f63
mov eax, dword [ebx + 0x5c]
jmp 0x404f66
lea eax, [ebx + 0x5c]
mov ecx, dword [esp + 0x184]
push ecx
push eax
push str.FileMap_Write__s__FirmVersionInfo.dwFirmCnt_____________________d__r_n
push 0x40000
push 0x433970
call fcn.00410c40
xor esi, esi
add esp, 0x14
cmp dword [esp + 0x184], esi
jbe 0x404ffa
lea edi, [esp + 0x1ba]
cmp dword [ebx + 0x70], 0x10
jb 0x404fa3
mov eax, dword [ebx + 0x5c]
jmp 0x404fa6
lea eax, [ebx + 0x5c]
lea edx, [edi - 0x32]
push edx
push esi
push eax
push str.FileMap_Write__s__FirmVersionInfo.firmInfo__d_.strFirmID_________s__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esp, 0x18
cmp dword [ebx + 0x70], 0x10
jb 0x404fce
mov eax, dword [ebx + 0x5c]
jmp 0x404fd1
lea eax, [ebx + 0x5c]
push edi
push esi
push eax
push str.FileMap_Write__s__FirmVersionInfo.firmInfo__d_.strFirmVersion____s__r_n
push 0x40000
push 0x433970
call fcn.00410c40
add esi, 1
add esp, 0x18
add edi, 0x64
cmp esi, dword [esp + 0x184]
jb 0x404f98
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40501f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x1c]
call fcn.00412bb0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00413bbc
mov esp, ebp
pop ebp
ret 4