Function at 0x407f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494848
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x48]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422880
mov esi, dword [ebp + 8]
add esi, 0x68
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0xc], eax
jle 0x407f9d
test eax, eax
jl 0x407f98
cmp eax, dword [esi + 0xc]
jge 0x407f98
mov edx, dword [esi + 8]
mov edi, dword [edx + eax*4]
jmp 0x407f9f
call fcn.00455154
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
push 1
mov ecx, edi
call edx
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407fc7
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407ff6
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x20]
push 0
push 0x4a1c98
xor eax, eax
call fcn.00433580
add esp, 8
test eax, eax
jne 0x408063
push eax
push esi
mov eax, str._MODEL_NAME_
xor ecx, ecx
call fcn.00435f90
push 0xc
push str._MODEL_NAME_
lea ecx, [esp + 0x18]
call fcn.00404b00
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00435540
test eax, eax
je 0x408063
mov edx, dword [esp + 0x10]
push edx
push esi
mov eax, str._MODEL_NAME_
xor ecx, ecx
call fcn.00435f90
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push str.ReplaceEntry
push str.Main
mov ecx, edi
call edx
test eax, eax
je 0x4080ed
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x18], eax
jb 0x4080ed
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x4080e4
mov eax, dword [esp + 0x14]
push 0
push esi
xor ecx, ecx
call fcn.00435f90
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push str.___s__
push ecx
call fcn.004045e0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00435540
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push esi
xor ecx, ecx
call fcn.00435f90
add ebx, 1
cmp ebx, dword [esp + 0x18]
jbe 0x408090
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
push 0
mov ecx, edi
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408120
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x1c], vtable.CCmdlineParser.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408175
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4