Function at 0x490fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da880
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 4]
push str.____________________Entrance____________________
lea ecx, [esp + 0x28]
mov eax, edi
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], str.ExecReplace
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x38], 0
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x38], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 2
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push str.REPLACE
mov byte [esp + 0x48], 3
call fcn.00494ad0
test al, al
jne 0x49113c
push str.Wrong_REPLACE_statement
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00471980
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4910bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4910e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
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 0x491107
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x10]
mov esi, ebx
call fcn.0042b600
lea edi, [esp + 0x10]
call fcn.004082a0
mov edi, dword [esp + 0x14]
call fcn.0042b600
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0042b600
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00451ab0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
call fcn.0042b600
mov edi, eax
lea eax, [esp + 0x10]
call fcn.004082a0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push esi
push str.REPLACE_s
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004719c0
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4911d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4911f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8