Function at 0x515130
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 0x5f3685
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x705200]
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.00522c70
mov dword [ebp - 0x98], 0
test eax, eax
je 0x5151d8
push 0
push 0
mov ecx, esi
call fcn.005214c0
mov ecx, esi
call fcn.00523060
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x5152fa
mov ecx, edx
call fcn.00521850
push eax
mov ecx, esi
mov dword [edi + 0x2c], eax
call fcn.00521860
push 0
mov ecx, edx
call fcn.00522c70
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x98], eax
call dword [0x5fd7ec]
test eax, 0x20000000
je 0x5152d9
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 0x51583c
test ecx, ecx
je 0x515b54
push 0xfffffffffffffff0
push ecx
call dword [0x5fd7ec]
test eax, 0x20000000
jne 0x515b54
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 0x51530b
mov eax, dword [ebp - 0xa8]
cmp eax, 0xffffffff
je 0x51530b
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 0x515371
push dword [ebp - 0x98]
call dword [0x5fd6dc]
test eax, eax
jne 0x515229
xor ecx, ecx
mov dword [ebp - 0x98], ecx
jmp 0x51522f
mov ecx, esi
call fcn.00521850
mov dword [edi + 0x2c], eax
xor ecx, ecx
jmp 0x51522f
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [0x5fd734]
test eax, eax
je 0x51534d
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x30], xmm0
call dword [0x5fd7b8]
test eax, eax
je 0x51534d
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 0x515353
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 0x515371
add edx, 0x18
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa8], 0xffffffff
jne 0x515383
add ecx, 0x10
mov dword [ebp - 0xa4], ecx
push 1
push 0x621c84
push dword [ebp - 0xb4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x88]
movups xmmword [ebp - 0x88], xmm0
movq qword [ebp - 0x78], xmm0
call fcn.00542280
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
movq qword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x70], xmm0
call fcn.00542300
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.005421f0
cmp eax, 1
jbe 0x5153e8
push 1
call fcn.00542200
mov dword [ebp - 0x9c], eax
jmp 0x5153f2
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.00523240
mov ecx, dword [ebp - 0x90]
push eax
mov dword [ebp - 0xb0], eax
call fcn.00523680
movsd xmm1, qword [0x6e4328]
mov ecx, esi
push 0
push str.Arial
push 1
push 0x190
call fcn.005217f0
push 0xffffff
mov ecx, esi
call fcn.005219e0
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.00542200
push eax
mov ecx, esi
call fcn.0051df20
push eax
mov ecx, esi
mov dword [ebp - 0xb4], eax
call fcn.00522c70
push eax
mov dword [ebp - 0x90], eax
call dword [0x5fd6e0]
push 1
push 0x621884
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00542200
push eax
lea ecx, [ebp - 0x70]
call fcn.00542050
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.005421f0
test eax, eax
je 0x51556b
lea eax, [ebp - 0x58]
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.00542200
mov ecx, eax
call fcn.00541c20
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.00542200
push eax
push dword [ebp - 0x8c]
call dword [0x5fd210]
mov edx, dword [ebp - 0xa8]
test eax, eax
je 0x515558
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 0x515558
mov edx, eax
mov dword [ebp - 0xa8], edx
lea ecx, [ebp - 0x70]
inc edi
call fcn.005421f0
cmp edi, eax
jb 0x515507
mov dword [ebp - 0x98], esi
lea ecx, [ebp - 0x70]
call fcn.005421f0
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 0x51562a
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], 0x6809e0
call dword [0x5fda20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [edi + 4], eax
jmp 0x515632
xor edi, edi
mov dword [ebp - 0xa0], edi
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x515768
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 [0x6e4570]
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.00521a00
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.0051df20
movsd xmm0, qword [0x6e4350]
sub esp, 0xc
mov esi, eax
movsd qword [esp + 4], xmm0
push 0
push ecx
push 0x190
push 0xffffffffffffffff
mov ecx, edi
call fcn.0051c1a0
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.00521ce0
push 1
push 4
mov ecx, edi
call fcn.005214c0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xb0]
push esi
push eax
push 0x525720
push eax
call dword [0x5fd17c]
lea ecx, [ebp - 0x70]
call fcn.00542260
lea ecx, [ebp - 0x88]
call fcn.00542260
mov eax, esi
jmp 0x515b56
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 0x515875
cmp edx, 0xffffffff
jne 0x515875
mov byte [ebp - 0xa9], 0
jmp 0x5158ad
mov byte [ebp - 0xa9], 1
test ecx, ecx
je 0x5158ad
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 0x61d074
push str._WINDOW_MsgBoxClass
call fcn.00523240
movsd xmm1, qword [0x6e4328]
mov ecx, esi
push 0
push str.Arial
push 1
push 0x190
call fcn.005217f0
push dword [edi + 0x24]
mov ecx, esi
call fcn.005219e0
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.00516c80
push 0
mov ecx, esi
call fcn.00522c70
cmp byte [ebp - 0xa9], 0
mov dword [ebp - 0xb0], eax
jne 0x51594d
mov edx, dword [ebp - 0x98]
mov ecx, eax
push 0
call fcn.0053c000
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x51595d
push eax
call fcn.00523680
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.0051df20
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 0x5159d8
cmp ecx, 2
je 0x5159d8
cmp ecx, 3
jne 0x515a01
mov eax, dword [ebp - 0xa0]
add eax, 0xffffff10
cdq
and edx, ecx
add eax, edx
sar eax, 2
mov dword [ebp - 0x98], eax
jmp 0x515ac5
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 0x515a25
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621cec
mov ecx, esi
call fcn.0051f0e0
mov dword [edi + 4], eax
jmp 0x515b3a
cmp ecx, 1
jne 0x515a74
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621cf4
mov ecx, esi
call fcn.0051f0e0
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 0x621cfc
call fcn.0051f0e0
mov dword [edi + 8], eax
jmp 0x515b3a
cmp ecx, 2
jne 0x515ac0
push ecx
push 0x10000001
push 0x19
push 0x50
push edx
push eax
push 0x621cec
mov ecx, esi
call fcn.0051f0e0
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.0051f0e0
mov dword [edi + 8], eax
jmp 0x515b3a
cmp ecx, 3
jne 0x515b3a
push ecx
push 0x10000001
push 0x19
push 0x50
push dword [ebp - 0x9c]
mov ecx, esi
push eax
push 0x621cf4
call fcn.0051f0e0
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 0x621cfc
call fcn.0051f0e0
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.0051f0e0
mov dword [edi + 0xc], eax
push 7
push 5
mov ecx, esi
call fcn.005214c0
push 0x80
push dword [edi + 4]
mov ecx, esi
call fcn.0051aa80
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.0041e475
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20