Function at 0x407db0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x44b7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call edx
mov eax, dword [eax]
push eax
xor ebx, ebx
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x407fe6
push 4
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x407fc5
push 1
lea ecx, [ebp + 4]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041fa9b
mov eax, dword [edi]
cmp eax, ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x14], eax
je 0x407f83
lea ecx, [esp + 0x3c]
call fcn.00417c51
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 1
call fcn.00418fba
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call fcn.00418f79
mov ecx, dword [esp + 0x5c]
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x407eb5
push 9
lea ecx, [esp + 0x40]
call fcn.0041c522
cmp esi, ebx
je 0x407ec3
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa4]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x24], eax
je 0x407f23
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407ef0
sub eax, edx
add eax, 1
push eax
mov dword [esp + 0x2c], eax
call fcn.0041512c
mov edi, eax
mov edx, edi
add esp, 4
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x407f13
mov dword [esp + 0x2c], edi
call fcn.0041ef20
cmp eax, ebx
je 0x407f37
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x407f39
xor eax, eax
xor ecx, ecx
cmp eax, ebx
je 0x407f42
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x24]
push edx
push ecx
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, ebx
je 0x407f62
push edi
call fcn.00415131
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.00418ff3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], bl
call fcn.00419708
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x407fab
mov ecx, esi
call fcn.0041fa4b
push esi
call fcn.00415131
add esp, 4
mov dword [ebp + 0x14], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x98], 0xffffffff
call fcn.0041fa4b
mov eax, dword [esp + 0x14]
jmp 0x407fe8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x407fe6
mov ecx, esi
call fcn.0041fa4b
push esi
call fcn.00415131
add esp, 4
mov dword [ebp + 0x14], ebx
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8