Function at 0x5154c0
Capabilities:
Access peb ldr_data
Inspect section memory permissions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3836
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x704200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebx + 0x14]
lea esi, [edi + 0x30]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x90], ecx
mov ecx, esi
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x24]
push 0
mov dword [ebp - 0xa8], eax
call fcn.00523000
mov dword [ebp - 0x98], 0
test eax, eax
je 0x515568
push 0
push 0
mov ecx, esi
call fcn.00521850
mov ecx, esi
call fcn.005233f0
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x51568a
mov ecx, edx
call fcn.00521be0
push eax
mov ecx, esi
mov dword [edi + 0x2c], eax
call fcn.00521bf0
push 0
mov ecx, edx
call fcn.00523000
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x98], eax
call dword [0x5fd7ec]
test eax, 0x20000000
je 0x515669
push 9
push dword [ebp - 0x98]
call dword [0x5fd858]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
cmp edx, 4
jne 0x515bcc
test ecx, ecx
je 0x515ee4
push 0xfffffffffffffff0
push ecx
call dword [0x5fd7ec]
test eax, 0x20000000
jne 0x515ee4
mov ecx, 0xc8
cmp dword [ebp - 0xb0], ecx
cmovge ecx, dword [ebp - 0xb0]
cmp dword [ebp - 0xa4], 0x46
mov dword [ebp - 0xb0], ecx
mov ecx, 0x4b
cmovge ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xffffffff
je 0x51569b
mov eax, dword [ebp - 0xa8]
cmp eax, 0xffffffff
je 0x51569b
mov edi, dword [ebp - 0x98]
push 1
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push edi
mov dword [ebp - 0x50], ecx
call dword [0x5fd808]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
jmp 0x515701
push dword [ebp - 0x98]
call dword [0x5fd6dc]
test eax, eax
jne 0x5155b9
xor ecx, ecx
mov dword [ebp - 0x98], ecx
jmp 0x5155bf
mov ecx, esi
call fcn.00521be0
mov dword [edi + 0x2c], eax
xor ecx, ecx
jmp 0x5155bf
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [0x5fd734]
test eax, eax
je 0x5156dd
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x30], xmm0
call dword [0x5fd7b8]
test eax, eax
je 0x5156dd
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
add ecx, 4
add edx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
jmp 0x5156e3
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
cmp dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], ecx
jne 0x515701
add edx, 0x18
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa8], 0xffffffff
jne 0x515713
add ecx, 0x10
mov dword [ebp - 0xa4], ecx
push 1
push 0x621c74
push dword [ebp - 0xb4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x88]
movups xmmword [ebp - 0x88], xmm0
movq qword [ebp - 0x78], xmm0
call fcn.00542680
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
movq qword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x70], xmm0
call fcn.00542700
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.005425f0
cmp eax, 1
jbe 0x515778
push 1
call fcn.00542600
mov dword [ebp - 0x9c], eax
jmp 0x515782
mov dword [ebp - 0x9c], str.Information
push 0xffffffffffffffec
push edi
call dword [0x5fd7ec]
push ecx
push edi
mov edi, dword [ebp - 0xb0]
and eax, 8
push eax
push 0x80000000
push dword [ebp - 0xa4]
mov ecx, esi
push dword [ebp - 0xa0]
push dword [ebp - 0x8c]
push edi
push dword [ebp - 0x9c]
push str._WndMsgTipClass
call fcn.005235d0
mov ecx, dword [ebp - 0x90]
push eax
mov dword [ebp - 0xb0], eax
call fcn.00523a10
movsd xmm1, qword [0x6e3298]
mov ecx, esi
push 0
push str.Arial
push 1
push 0x190
call fcn.00521b80
push 0xffffff
mov ecx, esi
call fcn.00521d70
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, 0xffffffd3
push eax
lea eax, [edi - 0x14]
push eax
push 0x23
push 0xa
push 0
call fcn.00542600
push eax
mov ecx, esi
call fcn.0051e2b0
push eax
mov ecx, esi
mov dword [ebp - 0xb4], eax
call fcn.00523000
push eax
mov dword [ebp - 0x90], eax
call dword [0x5fd6e0]
push 1
push 0x621874
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00542600
push eax
lea ecx, [ebp - 0x70]
call fcn.00542450
mov esi, 0x4b
lea ecx, [ebp - 0x70]
mov edx, 0x10
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xa8], edx
xor edi, edi
call fcn.005425f0
test eax, eax
je 0x5158fb
lea eax, [ebp - 0x58]
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.00542600
mov ecx, eax
call fcn.00542020
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.00542600
push eax
push dword [ebp - 0x8c]
call dword [0x5fd210]
mov edx, dword [ebp - 0xa8]
test eax, eax
je 0x5158e8
mov eax, dword [ebp - 0x58]
add eax, 0x14
cmp eax, esi
cmovle eax, esi
mov esi, eax
mov eax, dword [ebp - 0x54]
cmp eax, edx
jle 0x5158e8
mov edx, eax
mov dword [ebp - 0xa8], edx
lea ecx, [ebp - 0x70]
inc edi
call fcn.005425f0
cmp edi, eax
jb 0x515897
mov dword [ebp - 0x98], esi
lea ecx, [ebp - 0x70]
call fcn.005425f0
push dword [ebp - 0x8c]
mov edi, eax
push dword [ebp - 0x90]
imul edi, edx
lea eax, [edi + 0x2d]
mov dword [ebp - 0xa8], eax
call dword [0x5fd6ec]
push 0x212
lea eax, [edi + 0x2d]
push eax
push esi
mov esi, dword [0x5fd6d8]
push 0
push 0
push 0
push dword [ebp - 0xb0]
call esi
mov eax, dword [ebp - 0x98]
push 0x202
push edi
add eax, 0xffffffec
push eax
push 0
push 0
push 0
push dword [ebp - 0x90]
call esi
push 0x10
call dword [0x5fd990]
mov esi, dword [ebp - 0x98]
mov edi, eax
mov dword [ebp - 0xa0], edi
test edi, edi
je 0x5159ba
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push 0
push 0xe200b
push 0
push dword [ebp - 0xa8]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push esi
mov dword [edi], 0x680420
call dword [0x5fda20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [edi + 4], eax
jmp 0x5159c2
xor edi, edi
mov dword [ebp - 0xa0], edi
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x515af8
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
push dword [edi + 4]
call dword [0x5fda64]
mov edi, dword [ebp - 0x8c]
lea eax, [ebp - 0x90]
push eax
push 0xff000000
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x90], 0
call dword [0x5fd970]
push dword [ebp - 0xa8]
push esi
mov esi, dword [ebp - 0x90]
push 0
push 0
push esi
push edi
call dword [0x5fda68]
mov edi, dword [0x5fd99c]
push esi
call edi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push ecx
mov dword [esp], 0x40000000
push 0xffffffffffffffff
call dword [0x5fda18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0x98]
add eax, 0xfffffffe
push eax
push 1
push 1
push dword [ebp - 0x94]
push dword [ebp - 0xa4]
call dword [0x5fd9b8]
push dword [ebp - 0x94]
call dword [0x5fda24]
movaps xmm0, xmmword [0x6e34e0]
lea eax, [ebp - 0x90]
push eax
push 0xff6060ff
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x90], 0
call dword [0x5fd970]
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0x38]
push 0
push 3
push eax
push esi
push dword [ebp - 0xa4]
call dword [0x5fd9e0]
push esi
call edi
push dword [ebp - 0xa4]
call dword [0x5fda78]
mov edi, dword [ebp - 0xa0]
push 0
push 0
push edi
mov edi, dword [ebp - 0x3c]
add edi, 0x30
mov ecx, edi
call fcn.00521d90
mov ecx, dword [ebp - 0xa0]
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x98]
mov ecx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x14
add eax, 0xffffffdd
push eax
push 6
push 0x23
push dword [ebp - 0x9c]
call fcn.0051e2b0
movsd xmm0, qword [0x6e32c0]
sub esp, 0xc
mov esi, eax
movsd qword [esp + 4], xmm0
push 0
push ecx
push 0x190
push 0xffffffffffffffff
mov ecx, edi
call fcn.0051c530
mov eax, 0x1b
mov byte [ebp - 0x20], 1
mov word [ebp - 0x1e], ax
mov ecx, edi
mov eax, dword [ebp - 0xb4]
mov word [ebp - 0x1c], ax
mov eax, 0xd
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x20]
push 2
push eax
mov byte [ebp - 0x1a], 1
mov word [ebp - 0x16], si
call fcn.00522070
push 1
push 4
mov ecx, edi
call fcn.00521850
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xb0]
push esi
push eax
push 0x525ac0
push eax
call dword [0x5fd17c]
lea ecx, [ebp - 0x70]
call fcn.00542660
lea ecx, [ebp - 0x88]
call fcn.00542660
mov eax, esi
jmp 0x515ee6
cmp dword [ebp - 0xb0], 0xa0
mov eax, 0x168
mov edx, dword [ebp - 0xa8]
cmovge eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0xa0], eax
jne 0x515c05
cmp edx, 0xffffffff
jne 0x515c05
mov byte [ebp - 0xa9], 0
jmp 0x515c3d
mov byte [ebp - 0xa9], 1
test ecx, ecx
je 0x515c3d
mov eax, dword [ebp - 0x9c]
push 1
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 0
push ecx
mov dword [ebp - 0x3c], edx
call dword [0x5fd808]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa0]
push ecx
push dword [ebp - 0x98]
mov ecx, esi
push 0xffffffffffffffff
push 0x80000000
push edx
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push 0x61d060
push str._WINDOW_MsgBoxClass
call fcn.005235d0
movsd xmm1, qword [0x6e3298]
mov ecx, esi
push 0
push str.Arial
push 1
push 0x190
call fcn.00521b80
push dword [edi + 0x24]
mov ecx, esi
call fcn.00521d70
push 4
push dword [edi + 0x28]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [ebp - 0xa4]
push dword [ebp - 0xa0]
call fcn.00517010
push 0
mov ecx, esi
call fcn.00523000
cmp byte [ebp - 0xa9], 0
mov dword [ebp - 0xb0], eax
jne 0x515cdd
mov edx, dword [ebp - 0x98]
mov ecx, eax
push 0
call fcn.0053c3f0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x515ced
push eax
call fcn.00523a10
mov eax, dword [ebp - 0xa4]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, 0xffffffbf
push eax
mov eax, dword [ebp - 0xa0]
add eax, 0xffffffd8
push eax
push 0x14
push 0x14
push dword [ebp - 0xb4]
call fcn.0051e2b0
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebx + 0x10]
add edx, 0xffffffdd
mov dword [edi], eax
mov eax, dword [ebp - 0xa0]
add eax, 0xffffff79
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], eax
cmp ecx, 1
je 0x515d68
cmp ecx, 2
je 0x515d68
cmp ecx, 3
jne 0x515d91
mov eax, dword [ebp - 0xa0]
add eax, 0xffffff10
cdq
and edx, ecx
add eax, edx
sar eax, 2
mov dword [ebp - 0x98], eax
jmp 0x515e55
mov ecx, dword [ebp - 0xa0]
mov eax, 0x55555556
lea ecx, [ecx - 0xa0]
imul ecx
mov ecx, dword [ebx + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x98], eax
test ecx, ecx
jne 0x515db5
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621cdc
mov ecx, esi
call fcn.0051f470
mov dword [edi + 4], eax
jmp 0x515eca
cmp ecx, 1
jne 0x515e04
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621ce4
mov ecx, esi
call fcn.0051f470
push ecx
push 0xffffffffffffffff
push 0x19
mov dword [edi + 4], eax
mov ecx, esi
mov eax, dword [ebp - 0x98]
push 0x50
push dword [ebp - 0x9c]
lea eax, [eax*2 + 0x50]
push eax
push 0x621cec
call fcn.0051f470
mov dword [edi + 8], eax
jmp 0x515eca
cmp ecx, 2
jne 0x515e50
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621cdc
mov ecx, esi
call fcn.0051f470
push ecx
push 0xffffffffffffffff
push 0x19
mov dword [edi + 4], eax
mov ecx, esi
mov eax, dword [ebp - 0x98]
push 0x50
push dword [ebp - 0x9c]
lea eax, [eax*2 + 0x50]
push eax
push str.Cancel
call fcn.0051f470
mov dword [edi + 8], eax
jmp 0x515eca
cmp ecx, 3
jne 0x515eca
push ecx
push 0x10000001
push 0x19
push 0x50
push dword [ebp - 0x9c]
mov ecx, esi
push eax
push 0x621ce4
call fcn.0051f470
push ecx
push 0xffffffffffffffff
push 0x19
mov dword [edi + 4], eax
mov ecx, esi
mov eax, dword [ebp - 0x98]
push 0x50
push dword [ebp - 0x9c]
lea eax, [eax*2 + 0x50]
push eax
push 0x621cec
call fcn.0051f470
push ecx
push 0xffffffffffffffff
mov dword [edi + 8], eax
mov ecx, esi
mov eax, dword [ebp - 0x98]
push 0x19
push 0x50
push dword [ebp - 0x9c]
lea eax, [eax + eax*2]
add eax, 0xa0
push eax
push str.Cancel
call fcn.0051f470
mov dword [edi + 0xc], eax
push 7
push 5
mov ecx, esi
call fcn.00521850
push 0x80
push dword [edi + 4]
mov ecx, esi
call fcn.0051ae10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e465
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20