Function at 0x100627d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae178
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.10019d80
mov ecx, dword [ebp - 0x34]
mov edx, 0x3a
mov dword [ebp - 4], 0
call fcn.1001a7b0
mov edi, eax
test edi, edi
js 0x10062a0d
mov ecx, dword [ebp - 0x34]
mov edx, 0x3a
lea ecx, [ecx + edi*2]
add ecx, 2
call fcn.1001a7b0
test eax, eax
js 0x10062a0d
lea esi, [edi + 1]
add esi, eax
js 0x10062a0d
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.10019e80
cmp esi, dword [ebp - 0x30]
jae 0x1006286b
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x30], esi
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x14]
add ecx, 2
lea ecx, [ecx + edi*2]
call fcn.100632b0
test al, al
je 0x100629fa
mov ecx, dword [ebp - 0x14]
lea eax, [ecx - 2]
cmp eax, 0x7ffffffe
ja 0x100629fa
test cl, 1
jne 0x100629fa
cmp edi, dword [ebp - 0x30]
jae 0x100628af
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x30], edi
mov word [eax + edi*2], cx
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10061870
lea ecx, [ebp - 0x10]
push dword [eax]
push 4
call fcn.100618c0
push dword [ebp - 0x40]
test eax, eax
setne bl
call fcn.1009cfdf
add esp, 4
test bl, bl
je 0x10062903
lea ecx, [ebp - 0x10]
mov esi, str.Cannot_open_mapping
call fcn.10060bb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10060b00
jmp 0x10062a12
mov ebx, dword [ebp - 0x14]
push ebx
push 0
push 0
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x1006293d
lea ecx, [ebp - 0x10]
mov esi, str.MapViewOfFile_error
call fcn.10060bb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10060b00
jmp 0x10062a12
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10019ec0
cmp word [edi], 0
mov byte [ebp - 4], 4
je 0x1006295d
mov esi, str.Unsupported_Map_data
jmp 0x100629d2
mov ecx, dword [ebp - 0x24]
mov esi, 1
shr ebx, 1
cmp ebx, esi
jbe 0x100629c5
jmp 0x10062970
movzx edi, word [edi + esi*2]
test di, di
jne 0x1006299c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.10060e30
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov word [eax], cx
mov ecx, dword [ebp - 0x24]
jmp 0x100629bd
cmp dword [ebp - 0x20], ecx
jne 0x100629ac
lea ecx, [ebp - 0x28]
call fcn.1001a910
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov word [eax + ecx*2], di
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x14]
inc esi
cmp esi, ebx
jb 0x10062970
test ecx, ecx
je 0x100629d0
mov esi, str.Map_data_error
jmp 0x100629d2
xor esi, esi
push dword [ebp - 0x28]
call fcn.1009cfdf
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x10]
call fcn.10060bb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10060b00
jmp 0x10062a12
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
mov esi, str.Unsupported_Map_data_size
call fcn.10060b00
jmp 0x10062a12
mov esi, str.Incorrect_Map_command
push dword [ebp - 0x34]
call fcn.1009cfdf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4