Function at 0x49b940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6f91
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 4]
push str.____________________Entrance____________________
lea ecx, [esp + 0x30]
push ecx
xor esi, esi
mov dword [esp + 0x20], esi
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], str.ShouldCloseDialog
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x40], esi
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 1
mov eax, dword [ebx + 0x90]
lea esi, [esp + 0x18]
call fcn.0048ca90
lea edi, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.004082a0
mov byte [esp + 0x40], 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 0x49b9fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x90]
lea esi, [esp + 0x28]
call fcn.0048ca50
mov edi, dword [ebp + 8]
mov byte [esp + 0x40], 3
mov eax, dword [eax]
mov dword [esp + 0x18], 1
test eax, eax
je 0x49ba3f
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jl 0x49ba3f
push eax
push ecx
call fcn.004a59da
add esp, 8
test eax, eax
je 0x49ba3f
sub eax, dword [edi]
sar eax, 1
test eax, eax
jg 0x49ba81
mov eax, dword [ebx + 0x90]
lea esi, [esp + 0x24]
call fcn.0048ca70
mov eax, dword [eax]
mov dword [esp + 0x18], 3
test eax, eax
je 0x49ba7a
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jl 0x49ba7a
push eax
push ecx
call fcn.004a59da
add esp, 8
test eax, eax
je 0x49ba7a
sub eax, dword [edi]
sar eax, 1
test eax, eax
jg 0x49ba81
mov byte [esp + 0x17], 0
jmp 0x49ba86
mov byte [esp + 0x17], 1
test byte [esp + 0x18], 2
je 0x49bab2
mov eax, dword [esp + 0x24]
and dword [esp + 0x18], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49bab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 1
test byte [esp + 0x18], 1
je 0x49bae1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49bae1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
cmp byte [esp + 0x17], 0
mov eax, esi
je 0x49bb7e
push 1
push ecx
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebx + 0x90]
call fcn.00451600
mov edx, dword [esp + 0x20]
push str.Return_TRUE.
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.004719c0
add esp, 0xc
mov byte [esp + 0x40], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49bb48
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ecx
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebx + 0x90]
call fcn.00451600
mov ecx, dword [esp + 0x20]
push str.Return_FALSE.
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004719c0
add esp, 0xc
mov byte [esp + 0x40], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x49bbd1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4